OS: Linux RedHat 7.0
I am having the following error when trying to compile PHP with GD 2.0.1:
checking whether to enable FTP support... yes
checking whether to include GD support... yes
checking whether to enable truetype string function in gd... no
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
configure: error: libXpm.(a|so) not found.
But...
ls -alF /usr/X11R6/lib/libXpm*
lrwxrwxrwx 1 root root 14 Set 14 10:03 /usr/X11R6/lib/libXpm.so.4 -> libXpm.so.4.11
-rwxr-xr-x 1 root root 56948 Mar 30 2001 /usr/X11R6/lib/libXpm.so.4.11
Configure line:
./configure --prefix=/usr --with-mysql=/usr/local --with-config-file-path=/usr --enable-bcmath --with-jpeg-dir=../jpeg-6b --enable-ftp --with-png-dir=/usr --disable-short-flags --enable-calendar --enable-magic-quotes --enable-track-vars --with-apache=../apache_1.3.20 --enable-xml --with-zlib=/usr --enable-versioning --with-tsrm-pthreads --enable-inline-optimization --disable-posix-threads --with-gd=../gd-2.0.1 --with-freetype-dir=/usr --with-xpm-dir=/usr/X11R6 --x-libraries=/usr/X11R6