Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

CentOS: Can't install PhP GD

I have a VPS with CentOS 6 in which I am trying to install PhP GD. I have tried sudo yum install php-gd as I read in other StackOverflow questions. When I do this, I get the following:

Error: Package: php-gd-5.5.21-1.el6.remi.x86_64 (remi-php55)
          Requires: gd-last(x86-64) >= 2.1.0-3
Error: Package: php-gd-5.5.21-1.el6.remi.x86_64 (remi-php55)
          Requires: libgd.so.3() (64bit)

Any idea on what can I do to install Php-Gd and solve this?

like image 811
user3091392 Avatar asked Oct 30 '25 05:10

user3091392


1 Answers

It turns out you need gd-last from epel,

try:

yum install gd-last --enablerepo=epel

and then

yum install php-gd --enablerepo=remi,remi-php55

like image 91
Mason.Chase Avatar answered Nov 01 '25 19:11

Mason.Chase