Bannister wrote:
I found that the configure script (I was compiling under AMD64) and many parameters you enter wont help much because of the hardcoding.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
The 'configure' script I had to alter to look something like this: (altered 'lib' too 'lib64' - because I was compiling on AMD64, and my --with-jpeg-dir=/usr/lib64 parameter wouldn't work because of the hardcoding in the configure script "(your dir)/lib/file.a" ) - Took a while to find and realise this though :-| Bottom line is if the libjpeg.a file is NOT in a dir called '****/lib' then it will fail.
if test -f "$i/lib64/libjpeg.$SHLIB_SUFFIX_NAME" -o -f "$i/lib64/libjpeg.a"; then
test -f $i/lib64/libjpeg.$SHLIB_SUFFIX_NAME -o -f $i/lib64/libjpeg.a && GD_JPEG_DIR=$i && break
test -f $i/lib64/libjpeg.$SHLIB_SUFFIX_NAME -o -f $i/lib64/libjpeg.a && GD_JPEG_DIR=$i && break
Beware there are a number of occurences of these issues for you to find before you will get a configure/compile out of it.
I had similar problems with soap, png, and a number of other things that required hacking of the configure and Makefile before I could get a compile.
-- Regards Kul
begin:vcard fn:Kul n:Drew;Colin email;internet:[EMAIL PROTECTED] tel;work:05511 400363 tel;home:+44 1634 813890 tel;cell:+44 7968 512427 x-mozilla-html:FALSE version:2.1 end:vcard