Hi,

I have been trying to compile php-5.1.1 using a modified script that I used successfully to compile 5.0.4 (included as an attachment). When I
run it, I get a configuration error as follows:

  configure: error: libjpeg.(a|so) not found.

If I remove the '--with-gd' from the script, it completes without errors. I am using gd-2.0.33-2, and the libraries (including libjpeg.a & .so) are still there. I would appreciate any suggestions on getting
this to work '--with-gd'.

Thanks in advance; and I wish all a Happy New Year

Joe
cd php-5.1.1
# cd php-5.0.4
# use make distclean to prevent recompile errors
make distclean
# make sure libpng-devel and libjpeg-devel installed before
# adding --with-gd to ./configure
../configure \
--build=i386-redhat-linux \
--host=i386-redhat-linux \
--target=i386-redhat-linux-gnu \
--program-prefix= \
--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 \
--localstatedir=/var \
--with-libdir=/usr/lib \
--with-config-file-path=/etc \
--with-config-file-scan-dir=/etc/php.d \
--disable-debug \
--disable-rpath \
--with-curl \
--with-exec-dir=/usr/bin \
--with-apxs2=/usr/sbin/apxs \
--with-mysqli=/usr/local/mysql/bin/mysql_config \
--with-openssl \
--with-mhash \
--with-mcrypt \
--with-zlib \
--with-zlib-dir \
--with-jpeg-dir \
--with-png-dir \
--with-freetype-dir \
--with-gd \
--with-exif \
--enable-ftp \
--enable-trans-sid \
--without-sqlite

Reply via email to