Click to See Complete Forum and Search --> : Adding GD to PHP


Anon
03-22-2001, 01:19 PM
Please tell me how to add the latest GD libraries to PHP 4.0.4pl1. I have PHP compiled as a DSO for Apache (running on Mandrake).

I've compiled GD separately, no problem. When I go to recompile PHP with the -with-gd=shared flag, it barfs on gd.c with an error about ImageCreateFromGif.

Please let me know what to do.

Thanks in advance,
Cristine

veggie2u
03-26-2001, 12:22 AM
Try giving a path instead of 'shared'

./configure ... --with-gd=/usr/local --with-jpeg-dir=/usr/local --with-png-dir=/usr/local --with-tff=/usr/local ...

This is working for me mostly...
I don't seem to be able to get the freetype library accepted, but gd isn't giving the errors.

veggie2u

Anon
02-24-2002, 04:24 PM
Hi Christine,

Try this:

./configure --with-gd=/usr/local --with-png-dir=/usr/local --with-zlib-dir=/usr --with-jpeg-dir=/usr/local --with-freetype-dir=/usr/local --with-pdflib=/usr/local --with-t1lib=/usr/local --enable-ftp

Hope this works. It works for me.