You have to specify --with-jpeg-dir=/path/where/libjpeg/is. I couldn't get that to work, so I installed a fresh copy of Libjpeg to /usr/local/libjpeg and used --with-jpegdir=/usr/local/libjpeg. I had to do the same thing with libpng.

Bannister wrote:

Hi there all,

I have the following syntax, i am using it to configure PHP5. Unfortunatly during the configure test it stops after a while at:

./configure --prefix=/usr/local/php5 --with-apxs2=/usr/local/apache2/bin/apxs --with-libxml-dir=/usr/local/lib --with-zlib --with-zlib-dir=/usr/local/lib --with-mysql=/usr/local/mysql --with-mysqli=/usr/local/mysql/bin/mysql_config --with-gd --enable-soap --enable-sockets

results in:

Configuring extensions
checking whether to enable LIBXML support... yes
checking libxml2 install dir... /usr/local/lib
checking whether libxml build works... (cached) yes
checking for OpenSSL support... no
checking for ZLIB support... yes
checking if the location of ZLIB install directory is defined... /usr/local/lib
checking for gzgets in -lz... (cached) yes
checking whether to enable bc style precision math functions... no
checking for BZip2 support... no
checking whether to enable calendar conversion support... no
checking for cpdflib support... no
checking whether to enable ctype functions... yes
checking for CURL support... no
checking if we should use CURL for url streams... no
checking whether to enable DBA... no
checking for QDBM support... no
checking for GDBM support... no
checking for NDBM support... no
checking for Berkeley DB4 support... no
checking for Berkeley DB3 support... no
checking for Berkeley DB2 support... no
checking for DBM support... no
checking for CDB support... no
checking for INI File support... no
checking for FlatFile support... no
checking whether to enable DBA interface... no
checking whether to enable dbase support... no
checking whether to enable dbx support... no
checking whether to enable direct I/O support... no
checking whether to enable DOM support... yes
checking whether libxml build works... (cached) yes
checking whether to enable EXIF (metadata from images) support... no
checking for fam support... no
checking for FrontBase SQL92 (fbsql) support... no
checking for FDF support... no
checking whether to enable the bundled filePro support... no
checking whether to enable FTP support... no
checking for GD support... yes
checking for the location of libjpeg... no
checking for the location of libpng... no
checking for the location of libXpm... no
checking for FreeType 1.x support... no
checking for FreeType 2... no
checking for T1lib support... no
checking whether to enable truetype string function in GD... no
checking whether to enable JIS-mapped Japanese font support in GD... no
checking for fabsf... yes
checking for floorf... yes
If configure fails try --with-jpeg-dir=<DIR>
configure: error: libpng.(a|so) not found.


I tried to use the --with-jpeg-dir attribute, this didn't help. Could someone perhaps give me headstart to get php5 installed please?

Hope someone knows a solution,

Kind regards Bannister





Reply via email to