Click to See Complete Forum and Search --> : Help! I'm desparate!


Anon
05-18-2002, 02:26 AM
I've posted this to the general forum but haven't gotten a response, so here's the message again:

Anyone have a link to a site that talks about getting GD working with Apache2 and PHP 4.2.1?

I'm running redhat 7.3, I have the latest GD installed (came with Redhat) and I have re-compiled PHP with the --with-GD option. I did not specific a directory since I'm not sure what it wants.
It looks like the libgd file is in the /usr/lib/ directory, but I'm not sure if the php with look to that directory by default or not.

Whenever I try to run some code that references GD I get these kind of errors:

Call to undefined function: imagecreate()

Can anyone help me?

I've tried a number of things, my current config contains --with-GD=/usr/lib. And I've even tried putting a line in the php.ini in the extensions section to point to the libgd.so file (I created a link from the /usr/lib/libgd.so.1.8.4).

Anon
05-18-2002, 03:46 AM
Well I sort of got it worked out. Turns out that when Redhat installs the 'development' libraries it install the libraries but not the header files or anything useful. I had to download all the support files. phpinfo now lists GD but it only lists WBMP, no other file types are listed.

Why am I not getting those other file types? When I installed gd-1.8.4 I specifically added jpeg and png.

Anyone know why only the WBMP is listed in the phpinfo(). I'm assuming that is why I'm getting this error:

Call to undefined function: imagepng()