|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #34488 configure --with-mysql fails to find mysql librariies in /usr/lib64
Submitted: 2005-09-13 06:46 UTC Modified: 2005-09-13 09:47 UTC
From: yusufg at outblaze dot com Assigned:
Status: Not a bug Package: *Configuration Issues
PHP Version: 5CVS-2005-09-13 (snap) OS: CentOS 4.1/x86-64
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 this is not your bug, you can add a comment by following this link.
If this is your bug, but you forgot your password, you can retrieve your password here.
Bug Type:
From: yusufg at outblaze dot com
New email:
PHP Version: OS:


 [2005-09-13 06:46 UTC] yusufg at outblaze dot com
On my CentOS 4.1 box running on an Opteron (AMD64) I installed mysql and mysql-devel from the CentOS repos
The libraries are installed in /usr/lib64

I have the following configure command for php 5.0.5

./configure --prefix=/usr/local/site/php50 \
            --with-apxs2=/usr/local/site/ap20/bin/apxs \
            --disable-ipv6 \
            --with-mysql \
            --enable-dba \
            --with-zlib \
            --with-curl \
            --with-openssl \

The output just before configure fails is

checking for specified location of the MySQL UNIX socket... no
checking for MySQL UNIX socket location... no
checking for mysql_close in -lmysqlclient... no
checking for mysql_error in -lmysqlclient... no
configure: error: mysql configure failed. Please check config.log for more information.

Reproduce code:
Run the configure command on a CentOS 4.x distro on an AMD64 box

Expected result:
mysql should be configured correctly
--with-mysqli takes an argument which is the location of mysql_config. On CentOS 4.1/x86-64, php-5.0.5 configures/compiles correctly if --with-mysqli is used but fails if --with-mysql is used


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2005-09-13 06:48 UTC] yusufg at outblaze dot com
I originally saw the error with 5.0.5, I also was able to reproduce with 5.1.0-rc1 and snapshot obtained here
 [2005-09-13 09:47 UTC]
Use the --with-libdir=lib64 configure option.
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Mon May 27 10:01:30 2024 UTC