I'm running an older RedHat 7.2 system with Apache 1.3.x and the following RPMs installed:
gd-1.8.4-4
libjpeg-6b-16
libpng-1.0.12-2
zlib-1.1.3-25.7
freetype-2.0.3-7
I'm trying to compile PHP from source using the --with-gd option, but it fails every time. Here's my configure statement:
./configure \
--with-mysql \
--enable-ftp \
--with-xml \
--enable-track-vars \
--with-apxs=/usr/local/apache/bin/apxs \
--with-gd
and here's a few lines from the configure output:
checking for GD support... yes
checking for the location of libjpeg... yes
checking for the location of libpng... yes
checking for the location of libXpm... yes
checking for FreeType 1.x support... yes
checking for FreeType 2... yes
checking for T1lib support... yes
checking whether to enable truetype string function in GD... yes
checking for fabsf... yes
checking for floorf... yes
If configure fails try --with-jpeg-dir=<DIR>
configure: error: libpng.(a|so) not found.
I've tried a few other techniques that I found at a few posts, such as:
./configure \
--with-mysql \
--enable-ftp \
--with-xml \
--enable-track-vars \
--with-apxs=/usr/local/apache/bin/apxs \
--with-gd=/usr/local \
--with-jpeg-dir=/usr/local \
--with-png-dir=/usr/local \
--with-freetype-dir=/usr/local \
--with-zlib-dir=/usr/local
but that gave me this error:
checking for GD support... yes
checking for the location of libjpeg... yes
checking for the location of libpng... yes
checking for the location of libXpm... yes
checking for FreeType 1.x support... yes
checking for FreeType 2... yes
checking for T1lib support... yes
checking whether to enable truetype string function in GD... yes
configure: error: libjpeg.(a|so) not found.
Maybe this will help, but all my .so files appear to be in /usr/lib. I also tried changing all the dirs in the previous configure to /usr/lib and still no luck. If anyone can give me some recommendations on what to try next, I'd really appreciate it. Should I try a different version of GD?
-Cliff