Can anybody give me some pointers here, I'm
going crazy....

I've done make install on:
freetype-2.1.0
zlib-1.1.4
gd-2.0.1

which builds fine, and installs.

Now I can't ./configure php-4.2.0.

My configure line is:

./configure i386-redhat-linux --enable-magic-quotes --enable-safe-mode --enable-track-vars --with-xpm-dir=/usr/X11R6/lib --with-jpeg-dir=/usr/lib --with-png-dir=/usr/lib --with-zlib-dir=/root/zlib-1.1.4 --with-freetype-dir=/usr/local/lib --with-gd=/usr/lib --enable-gd-imgstrttf --enable-gd-native-ttf --with-mysql -enable-inline-optimization --enable-ftp --enable-sockets --with-apxs=/usr/sbin/apxs --with-config-file-path=/etc --prefix=/usr --exec-prefix=/usr --bindir=/usr/bin --sbindir=/usr/sbin -sysconfdir=/etc --datadir=/usr/share --includedir=/usr/include --libdir=/usr/lib --libexecdir=/usr/libexec --mandir=/usr/share/man --infodir=/usr/share/info

The error is:

checking for GD support... yes
checking whether to enable truetype string function in GD... yes
checking for the location of libjpeg... yes
checking for jpeg_read_header in -ljpeg... yes
checking for the location of libpng... yes
checking for png_write_image in -lpng... yes
checking for the location of libXpm... yes
checking for XpmFreeXpmImage in -lXpm... yes
checking for freetype(2)... yes
checking for FreeType 1.x support... no
checking for T1lib support... no
configure: error: Unable to find libgd.(a|so) anywhere under /usr/local/lib

So I have a look myself:

bash-2.05# ls -l /usr/local/lib/libgd*
-rw-rw-r-- 1 root root 736294 May 8 17:23 /usr/local/lib/libgd.a
lrwxrwxrwx 1 root root 29 May 8 17:16 /usr/local/lib/libgd.so -> /usr/local/lib/libgd.so.2.0.0
lrwxrwxrwx 1 root root 29 May 8 17:16 /usr/local/lib/libgd.so.2 -> /usr/local/lib/libgd.so.2.0.0
-rw-r--r-- 1 root root 415962 May 8 17:16 /usr/local/lib/libgd.so.2.0.0

The library is there, so whats going on?

Thank you for any help,

Steve

    make sure you have /usr/local/lib/ in your /etc/ld.so.conf

    then type ldconfig

    This may help

      Write a Reply...