#36073 [NEW]: Source-compiled MySQL on x86_64 causes PHP configure failure
| From: | chris at spawnordie dot com | Date: | Wed, 18 Jan 2006 21:14:11 +0000 |
| Subject: | #36073 [NEW]: Source-compiled MySQL on x86_64 causes PHP configure failure | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-92151@lists.php.net to get a copy of this message | ||
From: chris at spawnordie dot com
Operating system: Linux/Any
PHP version: 5.1.2
PHP Bug Type: Compile Failure
Bug description: Source-compiled MySQL on x86_64 causes PHP configure failure
Description:
------------
Please accept my apologies if this is already reported - I searched and
didn't find it.
When configuring PHP for x86_64, it is necessary to use:
--with-libdir=lib64
When you compile MySQL from source, it does not place its files in lib64,
but rather lib.
MySQL was configured using:
--prefix=/usr/local/mysql
Configuring PHP using:
--with-mysql=/usr/local/mysql
fails with this:
checking for MySQL support... yes
checking for specified location of the MySQL UNIX socket... no
checking for MySQL UNIX socket location... no
configure: error: Cannot find libmysqlclient under /usr/local/mysql.
Note that the MySQL client library is not bundled anymore!
This fixes the problem:
cd /usr/local/mysql
ln -s lib lib64
When PHP is configured using --with-mysql=<mysql_dir> and
--with-libdir=<lib_dir>, it should search <mysql_dir>/<lib_dir> and then
<mysql_dir>/lib
Reproduce code:
---------------
./configure --with-mysql=<path/to/mysql> when MySQL is compiled from
source code
Expected result:
----------------
successful configure
Actual result:
--------------
configure fails with:
checking for MySQL support... yes
checking for specified location of the MySQL UNIX socket... no
checking for MySQL UNIX socket location... no
configure: error: Cannot find libmysqlclient under /usr/local/mysql.
Note that the MySQL client library is not bundled anymore!
--
Edit bug report at http://bugs.php.net/?id=36073&edit=1
--
Try a CVS snapshot (PHP 4.4): http://bugs.php.net/fix.php?id=36073&r=trysnapshot44
Try a CVS snapshot (PHP 5.1): http://bugs.php.net/fix.php?id=36073&r=trysnapshot51
Try a CVS snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=36073&r=trysnapshot60
Fixed in CVS: http://bugs.php.net/fix.php?id=36073&r=fixedcvs
Fixed in release: http://bugs.php.net/fix.php?id=36073&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=36073&r=needtrace
Need Reproduce Script: http://bugs.php.net/fix.php?id=36073&r=needscript
Try newer version: http://bugs.php.net/fix.php?id=36073&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=36073&r=support
Expected behavior: http://bugs.php.net/fix.php?id=36073&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=36073&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=36073&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=36073&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=36073&r=php3
Daylight Savings: http://bugs.php.net/fix.php?id=36073&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=36073&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=36073&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=36073&r=float
No Zend Extensions: http://bugs.php.net/fix.php?id=36073&r=nozend
MySQL Configuration Error: http://bugs.php.net/fix.php?id=36073&r=mysqlcfg