GD Lib error... Need to install and/or configure via SSH

Posted on 2004-11-07
Last Modified: 2013-12-13
I have a server at a Houston data center (a 7 hr drive from here).

In my newly installed instance of phpWebsite from the good kids at Appalachian State U, I get an error when trying to upload images to the photo gallery. It reads:

The photoalbum module requires the GD library functions. If you are getting this error then your GD libs are missing. Please contact your systems administrator to resolve this issue. With versions of php prior to 4.3.0 you must compile the GD libs into your build of php (--with-gd[=DIR], where DIR is the GD base install directory) Php 4.3.0 and greater have the GD libs already built in."

Fine, but I have root access via SSH to this box. How can I fix it?
Question by:smetterd
    LVL 2

    Author Comment

    By the way, it's RedHat 9.0, and PHP is  already installed. You can see the site at
    LVL 48

    Expert Comment

    gd might be install (or look if there is a packe for it)
    check if a exitsts in the php-extension dir. You can get it via
    ls -la `php-config --extension-dir`

    If there is no such you might be able to build it (so you don't have to recomplie the whole php). IUf its present skip the following steps.
    download the source of php und unpack them and change into the directory (you might need additional packages like libpng-devel or zlib-devel
    the do a
    cd ext/gd
    ./configure --with-gd=shared --with-zlib-dir=/usr
    make install // or cp {extensiondir}

    TO activate that module
    add the follwoing in your /ete.php.ini

    If some things fail you might post a lik to a info.php
    LVL 48

    Accepted Solution

    May be there is a php-gd rpm for redhat 9 which you can install (then only you need to enable gd by adding that

    LVL 2

    Author Comment

    worked perfectly... thanks

    Featured Post

    IT, Stop Being Called Into Every Meeting

    Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

    Join & Write a Comment

    Popularity Can Be Measured Sometimes we deal with questions of popularity, and we need a way to collect opinions from our clients.  This article shows a simple teaching example of how we might elect a favorite color by letting our clients vote for …
    These days socially coordinated efforts have turned into a critical requirement for enterprises.
    Learn how to match and substitute tagged data using PHP regular expressions. Demonstrated on Windows 7, but also applies to other operating systems. Demonstrated technique applies to PHP (all versions) and Firefox, but very similar techniques will w…
    This tutorial will teach you the core code needed to finalize the addition of a watermark to your image. The viewer will use a small PHP class to learn and create a watermark.

    734 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    21 Experts available now in Live!

    Get 1:1 Help Now