Anyone know how to configure gd library (php4)? I uploaded PHP_INFO and this is what I got

'./configure' '--with-apxs=apxs' '--prefix=/home/builder/psa-patch/psa/apache/../release/usr/local/psa/apache' '--with-system-regex' '--with-config-file-path=/usr/local/psa/apache/conf' '--disable-debug' '--disable-pear' '--enable-sockets' '--enable-track-vars' '--without-gd' '--with-mysql=/home/builder/psa-patch/psa/apache/../release/dist/usr/local/psa/mysql' '--with-iodbc=/home/builder/psa-patch/psa/apache/../release/lib/libiodbc' '--with-imap=/home/builder/psa-patch/psa/apache/../release/lib/imap-cclient'
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Notice that it says "Without GD" I want it to say "With gd" .. where do I go to fix this problem?
Thanks, Dan
    22 days later

    Got that problem too. I'm pretty new with unix administration. Anyways, I think you need to somehow recompile or upgrade your php setting the option -with before you do so. Still trying to figure out how the hell to do that.

      You'll need to recompile PHP specifying --with-gd=/path/to/gd in your ./configure line.

      If you've never compiled PHP before (i.e you installed it as an RPM or something) then you'll need the latest sourcecode from php.net

        I couldn't get it to reconfigure. It gave me a couple of errors.

        So I gave up on recompiling php. I tried using dl() but it said the file I pointed to (libgd.so) wasn't a valid PHP library. I've heard people mention php_gd.so as the real thing I am supposed to point to but I can't find it. Oh well.

          Write a Reply...