Click to See Complete Forum and Search --> : gd2 in linux


lives4him06
01-21-2005, 01:39 AM
I am having trouble getting the image library 'gd2' to work on linux. I have downloaded various .tar files, extracted them and followed what the README and INSTALL files had to say:
./configure

make install

etc...

After reading the php.ini file, i gather that i need to place a .so file (gd2.so or something like that) into /user/lib/php4.

problem being, after i do the make install, there is not a gd2.so or anything like it.

what am i doing wrong?

Maller
01-21-2005, 05:20 PM
You need to complie php with gd support.
--with-gd
you will also need to install libjpeg-devel and libpng-devel

lives4him06
01-24-2005, 02:03 PM
i thought you just needed to place a .so file into the dynamic extensions directory

tsinka
01-24-2005, 04:01 PM
Hi,

which distribution is installed ?

You might be able to do that without the need of executing "make install".

But you in order to get a shared gd extension you need to use the switch

--with-gd=shared

After compilation you'll have a shared gd extension file (something like gd.so).

Copy that file to the directory that is set as extension_dir in php.ini and add e.g. extension=gd.so to php.ini. Then restart the web server.