Published August 28th, 2005 by Jim O'Halloran
CentOS and GD
After my upgrade from Fedora to CentOS I noticed a few issues with the PHP photo gallery I use (Scry). Specifically, Scry wasn’t generating thumbnail images. A quick check of /var/log/httpd/error_log showed the following error…
PHP Fatal error: Call to undefined function: imagecreatetruecolor()
It turns out that there’s a slight packaging difference between Fedora and CentOS (and presumably Redhat Enterprise as well). CentOS uses a separate php-gd package for the GD image library, and the php-gd package hadn’t been installed. This fixed the problem for me…
yum install php-gd
service httpd restart
Tuxinator Says
Thanks for the fix. Running CentOS 4.1 here.
Sep 16th, 2005 at 7:49 pm
Brian Williford Says
I had the same issue and had installed yum gd-devel but got no results. Your post here probably saved me at least a days labor.
You Rule!
thanks
Jul 10th, 2006 at 2:51 am
Rich Says
Thank you very much, just saved me hours of work
Jan 15th, 2007 at 10:11 pm
Jared Says
This doesnt work for me ;(
Im new to centos after i rented a dedicated server, former freebsd user
Setting up Install Process
Setting up repositories
Reading repository metadata in from local files
Excluding Packages in global exclude list
Finished
Parsing package install arguments
No Match for argument: php-gd
Nothing to do
Feb 26th, 2007 at 3:00 am
Jared Says
soz, didnt setup yum properly
working now
Feb 26th, 2007 at 3:05 am
mfortier Says
SICK ! Saved so much time! Zabbix issues solved!
Apr 20th, 2007 at 10:54 pm
Jooen Says
hi JARED,
what fixed your problem?
Jun 7th, 2007 at 5:29 pm
olstar Says
Hi mate, i needed GD on my CENTOS client VS..
I googled it, found your site, now i have GD Successfully installed!
THANKS!!
Jul 23rd, 2007 at 11:29 pm
James Munch Says
Thanks!~
Aug 16th, 2007 at 6:57 am
Gayatri Says
You save me hours of work!
Thanks a ton
Sep 14th, 2007 at 4:12 pm
yan Says
tanx jim, works fine
Aug 5th, 2008 at 10:30 pm
Udomchok Says
thanks
Sep 26th, 2008 at 3:47 am
Chris Lawson Says
That’s a very helpful post, sir. Most appreciated.
Mar 19th, 2009 at 11:45 am