How do I install PHP GD Library on CentOS 6.5 x32


I am quite new to setting up and configuring web servers and I can’t seem to figure this out. I am trying to install the PHP GD library on my machine, but I get an error I don’t know how to solve.

I executed the command : sudo yum install php-gd

And got the following: Error: Package: php-gd-5.3.3-27.el6_5.i686 (updates) Requires: php-common(x86-32) = 5.3.3-27.el6_5 Installed: php-common-5.4.27-1.el6.remi.i686 (@remi) php-common(x86-32) = 5.4.27-1.el6.remi Available: php-common-5.3.3-26.el6.i686 (base) php-common(x86-32) = 5.3.3-26.el6 Available: php-common-5.3.3-27.el6_5.i686 (updates) php-common(x86-32) = 5.3.3-27.el6_5 You could try using --skip-broken to work around the problem You could try running: rpm -Va --nofiles --nodigest

Also, I used the following repositories: sudo rpm -Uvh sudo rpm -Uvh

Any ideas about how to solve this?

Thanks a lot in advance!

Submit an answer

This textbox defaults to using Markdown to format your answer.

You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

Sign In or Sign Up to Answer

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

Want to learn more? Join the DigitalOcean Community!

Join our DigitalOcean community of over a million developers for free! Get help and share knowledge in Q&A, subscribe to topics of interest, and get courses and tools that will help you grow as a developer and scale your project or business. <br> <br>use this link to download rpm . <br>install that rpm into ur centos mechine <br>Then yum install php-gd <br>restart httpd using service httpd restart <br> <br>Problem relating gd shoul be solved <br> <br> <br> <br>Arun <br> <br> <br>

It worked! thank you so much!

You might need to restart php-fpm for it to take effect: <br> <br><pre> <br>/etc/rc.d/init.d/php-fpm restart <br></pre>