Wednesday, March 8, 2017

[php][centos][Resolved] No package php7.1-gd available.

Background

I tried to use this command to install gd module for php version 7.1 but fail, here is the command and message:

Command
sudo yum install php7.1-gd
Result

Solution
Use command to search the available repository in mirror first:
yum search php-gd
and you would found a list of available repository

According the image, i think the module php71-php-gd.x86_64 maybe fit me cos i am using php7.1, so i try a new command to install it:

sudo yum install php71-php-gd.x86_64

and it works !
type "y" and enter to install that :


 Done :

don't forget restart your server:
sudo systemctl restart httpd.service
service httpd restart
 

No comments :

Post a Comment