Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:8604 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 68840 invoked by uid 1010); 19 Mar 2004 10:52:08 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 68727 invoked from network); 19 Mar 2004 10:52:07 -0000 Received: from unknown (HELO helium.firebox.com) (217.155.91.196) by pb1.pair.com with SMTP; 19 Mar 2004 10:52:07 -0000 Received: from localhost (helium.firebox.com [127.0.0.1]) by helium.firebox.com (8.12.8/8.12.8) with ESMTP id i2JApxB1006544 for ; Fri, 19 Mar 2004 10:51:59 GMT Received: from helium.firebox.com ([127.0.0.1]) by localhost (helium.firebox.com [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 06475-02 for ; Fri, 19 Mar 2004 10:51:57 +0000 (GMT) Received: from firebox.com (grant-ozolins.firebox.com [192.168.0.214]) by helium.firebox.com (8.12.8/8.12.8) with ESMTP id i2JApvxZ006539 for ; Fri, 19 Mar 2004 10:51:57 GMT Message-ID: <405AD0D4.8040709@firebox.com> Date: Fri, 19 Mar 2004 10:52:04 +0000 User-Agent: Mozilla Thunderbird 0.5 (X11/20040208) X-Accept-Language: en-us, en MIME-Version: 1.0 To: internals@lists.php.net Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new at firebox.com Subject: Problem with install w/ Fedora Core 1 for AMD64 From: grant.ozolins@firebox.com (Grant Ozolins) 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 Senior Web Developer Firebox.com +44 (0)20 8678 5581