CentOS: Can't install PhP GD

user3091392 picture user3091392 · Jan 24, 2015 · Viewed 7.6k times · Source

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?

Answer

Mason.Chase picture Mason.Chase · Jul 3, 2016

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