php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #52365 configure script does NOT check /usr/lib64 for libpng, libjpeg, libmysqlclient
Submitted: 2010-07-17 03:21 UTC Modified: 2010-07-20 11:30 UTC
From: ricks at nerd dot com Assigned:
Status: Not a bug Package: Compile Failure
PHP Version: 5.3.2 OS: Fedora 13, 64-bit
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: ricks at nerd dot com
New email:
PHP Version: OS:

 

 [2010-07-17 03:21 UTC] ricks at nerd dot com
Description:
------------
When running configure on a 64-bit machine, the script doesn't check /usr/lib64 for libraries.  I've had to resort to the workaround used in older php 4.x.x builds that exhibited this issue, to wit:

    ln -s /usr/lib64 /opt/lib
    ln -s /usr/include /opt/include

and then specifying things like this to configure:

    --with-jpeg-dir=/opt --with-png-dir=/opt --with-mysql=/opt

to get around it.  Even "--with-jpeg-dir=/usr/lib64" won't solve it.  I thought this was fixed in 5.1.x, but it's crept back in.
 
I don't mean to be rude, but is this stuff tested on 64-bit systems before release?


Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2010-07-20 11:30 UTC] aharvey@php.net
-Status: Open +Status: Bogus
 [2010-07-20 11:30 UTC] aharvey@php.net
Because Fedora (and its various derivative distributions) have their
unusual filesystem layout with /usr/lib64 instead of /usr/lib holding
the libraries, the --with-libdir configure option needs to be used, eg:
./configure --with-libdir=lib64 <other options>
 [2010-07-20 15:40 UTC] ricks at nerd dot com
That is the first thing I tried.  The "--with-libdir=/usr/lib64" will remove the need to specify "--with-mysql=/opt", but it does not fix the jpeg or png library resolution issue.  You still have to specify

    "--with-jpeg-dir=/opt --with-png-dir=/opt"

even with "--with-libdir=/usr/lib64".
 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Thu Dec 11 23:00:01 2025 UTC