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


13 Responses to “CentOS and GD”

Feed for this Entry Trackback Address
  1. 1

    Tuxinator Says

    Thanks for the fix. Running CentOS 4.1 here.

  2. 2

    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

  3. 3

    Rich Says

    Thank you very much, just saved me hours of work

  4. 4

    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

  5. 5

    Jared Says

    soz, didnt setup yum properly :) working now

  6. 6

    mfortier Says

    SICK ! Saved so much time! Zabbix issues solved!

  7. 7

    Jooen Says

    hi JARED,
    what fixed your problem?

  8. 8

    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!! :D

  9. 9

    James Munch Says

    Thanks!~

  10. 10

    Gayatri Says

    You save me hours of work!
    Thanks a ton

  11. 11

    yan Says

    tanx jim, works fine

  12. 12

    Udomchok Says

    thanks :)

  13. 13

    Chris Lawson Says

    That’s a very helpful post, sir. Most appreciated.

Leave a Reply

XHTML: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <code> <em> <i> <strike> <strong>