#34488 [Opn->Bgs]: configure --with-mysql fails to find mysql librariies in /usr/lib64
| From: | sniper@php.net | Date: | Tue, 13 Sep 2005 07:47:22 +0000 |
| Subject: | #34488 [Opn->Bgs]: configure --with-mysql fails to find mysql librariies in /usr/lib64 | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-84974@lists.php.net to get a copy of this message | ||
ID: 34488
Updated by: sniper@php.net
Reported By: yusufg at outblaze dot com
-Status: Open
+Status: Bogus
Bug Type: *Configuration Issues
Operating System: CentOS 4.1/x86-64
PHP Version: 5CVS-2005-09-13 (snap)
New Comment:
Use the --with-libdir=lib64 configure option.
Previous Comments:
------------------------------------------------------------------------
[2005-09-13 06:48:15] 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
http://snaps.php.net/php5-200509130230.tar.bz2
------------------------------------------------------------------------
[2005-09-13 06:46:44] yusufg at outblaze dot com
Description:
------------
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 \
--enable-sqlite-utf8
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
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=34488&edit=1