Page 1 of 1

Headaches over GD installation on Debian with PHP 4.4

Posted: Mon Oct 24, 2005 9:03 pm
by aluminumpork
... and Apache2. I'm fairly new to *nix but still don't have a complete grasp on it.

So I have Apache2, PHP4.4 and MySQL all manually installed and working nicely. I now have a need for GD and thought installation would be simple. Everywhere I look it say that PHP4.3 > all have GD built-in, so I tried configuring with -with-gd, no luck and errors out with "configure: error: libpng.(a|so) not found.", but I then look at the log and see that it say libjpeg support and all the other ones are not found. So I downloaded GD, and found out I need a jpeg library to compile with jpeg support, so I download jpeg 6b, configured and installed that. GD still says no jpeg library found, so out of frustration I apt-get'd every single package I could find with the word jpeg in it. GD now finally says I have jpeg support, whoopee. I then do make, but it errors out with:

/gd-2.0.33/gdparttopng.c:42: undefined reference to `gdImageCreateFromGd2Part'
collect2: ld returned 1 exit status
make[2]: *** [gdparttopng] Error 1
make[2]: Leaving directory `/gd-2.0.33'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/gd-2.0.33'
make: *** [all] Error 2


So I figure I should try re-configuring PHP with the native GD support since I figure I have at least the JPEG library I need, but nope, still errors out, and still says no support for jpeg, or png or anything else for that matter.

Why is this being so difficult. PHP, Apache2 and MySQL are all installed in /usr/local/*program name*/, but that shouldn't be affecting the configures anyways. What am I doing wrong, what do I need? *goes over to corner and cries*

Thanks

Posted: Tue Oct 25, 2005 11:45 am
by Maugrim_The_Reaper
I don't use Debian, but the last time I saw errors like that I needed to specify the actual location of the libraries. I think I came across it on Ubuntu (a Debian based distro) way back when last Spring. Maybe related... Problem was the default paths for each were not actually the same used by Ubuntu (and Ubuntu had fun appending itself to library names...haha).

This is probably one for a Debian forum... But do try specifying the path to the libraries it can't find. On another note you'll also need libpng et al. GD will need support for PNG, JPEG, etc, I assume. More apt-get's? :)