Hi PHP Dev guys,

(My apologies if this has been seen before, I couldn't find a reference to this issue in the mailing list archives)

I'd like to report some trouble I had getting I had getting PHP to configure under Fedora Core 1 for AMD64 - I couldn't get the PHP package that came with Fedora to talk to MySQL 4.x so I decided to roll my own.

My configure options were as follows:

./configure --with-apxs2=/usr/local/apache2/bin/apxs \
'--prefix=/usr/local/apache2' \
'--with-config-file-path=/usr/local/apache2/conf' \
'--with-gnu-ld' \
'--disable-cgi' \
'--with-mysql' \
'--with-gd' \
'--with-jpeg-dir=/usr/lib64' \
'--with-png-dir=/usr/lib64' \
'--with-zlib-dir=/usr/lib64' \  
'--with-freetype-dir=/usr/lib64' \
'--enable-gd-native-ttf' \
'--enable-exif' \
'--with-xml' \
'--with-dom'

(All the libraries were installed correctly, LD knew about them, etc)

Normally on a 32 bit platform you could just say e.g.:
'--with-jpeg-dir=/usr' because configure would test both this and /usr/lib, for example testing for libjpeg for GD:


(from 'configure',  lines 29941 - 29950)
---------------------------------------
  if test "$PHP_JPEG_DIR" != "no"; then

for i in $PHP_JPEG_DIR /usr/local /usr; do
test -f $i/lib/libjpeg.$SHLIB_SUFFIX_NAME -o -f $i/lib/libjpeg.a && GD_JPEG_DIR=$i && break
done


    if test -z "$GD_JPEG_DIR"; then
      { echo "configure: error: libjpeg.(a|so) not found." 1>&2; exit 1; }
    fi
--------------------------------------------

Now on 64 bit Fedora all the jpeg, png, zlib libraries etc. are in /usr/lib64 (thus my configure options given above) so the line

for i in $PHP_JPEG_DIR /usr/local /usr; do

is never going to find the libraries regardless of whether I specified /usr or /usr/lib64 (and it didn't - I got the libjpeg.(a|so) not found message)

I guess I could have symlinked /usr/lib64/libjpeg.so to /usr/lib/libjpeg.so, and the same for libpng, zlib, freetype and anything else including headers that caused configure to break, but as I am lazy what I did was to symlink:

/usr/lib64/include -> ../include
/usr/lib64/lib -> .

And configure worked. Obviously this is not ideal, so I was wondering what your thoughts are regarding modifying the configure script somewhat to deal with 64 bit Fedora (I have no knowledge whatsoever whether other 64 bit distros do something similar)

Again, apologies if this has already been discussed.

Cheers & thanks for your time,
--
Grant Ozolins <[EMAIL PROTECTED]>
Senior Web Developer
Firebox.com
+44 (0)20 8678 5581

--
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php



Reply via email to