|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #28150 configure in 5.0-RC2 does not look for mysqlclient in lib64
Submitted: 2004-04-26 04:20 UTC Modified: 2004-04-26 20:35 UTC
Avg. Score:4.8 ± 0.4
Reproduced:26 of 26 (100.0%)
Same Version:2 (7.7%)
Same OS:5 (19.2%)
From: thomas+php at stromberg dot org Assigned:
Status: Wont fix Package: Compile Failure
PHP Version: 5CVS-2004-04-26 (dev) OS: SUSE Linux 9.0 AMD64
Private report: No CVE-ID: None
Have you experienced this issue?
Rate the importance of this bug to you:

 [2004-04-26 04:20 UTC] thomas+php at stromberg dot org
The configure script has it hardcoded to search in lib/ 
or lib/mysql/ for the libmysqlclient library.

At least in SUSE Linux 9.0 64-bit, you must add lib64/ 
to this search path so that it runs correctly.

Here is a patch to configure, though I guess you guys 
need to patch the script that generates configure:

--- configure~  2004-04-25 21:13:43.000000000 -0500
+++ configure   2004-04-25 21:13:43.000000000 -0500
@@ -53844,7 +53844,7 @@ Note that the MySQL client 
library is not bundled anymore." 1>&2; exit 1; }
-  for i in lib lib/mysql; do
+  for i in lib lib64 lib64/mysql lib/mysql; do
   for j in `echo $str`; do

Reproduce code:
./configure --with-apxs2=/usr/sbin/apxs2 --with-mysql

Expected result:
It should configure


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2004-04-26 20:30 UTC]
We only look for old fashion standard directories. Please specify the location manually on the configure line.
 [2004-04-26 20:35 UTC] thomas+php at stromberg dot org
The problem in this situation is there is no way to tell 
configure to see this directory. configure only allows 
you to specify the root directory of mysql, which in my 
case is /usr. There is no option in the PHP5 configure 
script to set something like --with-mysql-library=/usr/
 [2004-05-21 14:57 UTC] zerokode at gmx dot net
Hmmm... Maybe you could just check for -lmysql... That is platform-independent...

(this also goes for the GD-dependent libs...)
 [2004-06-30 23:44 UTC] gregory at networksentry dot co dot za
Ive just built myself up a x86_64 distro from scratch and have had the same problem as the libs are installed in */lib64/* and not */lib/* even setting this in configure args will not help

i manualy edited the configure script useing a dirty sed script the configure program will need to take into the 64 bit lib paths to be multi platform ...

the /lib dirs are for 32 bit apps and legacy software it is posible to have both a 32bit and 64 bit MySQL client lib on the same host even compiled with the same compiler (-m32/-m64) switches.

i never took time to look into modifying the .m4 files as i do not understand there layout/usage.

if the fine android in charge of the said files could make changes it would be appreciated.

 [2004-07-27 15:31 UTC] sonny at sun dot com
Is there a timeframe when this Bug will be fixed?
 [2004-08-18 21:29 UTC] volantt at gmail dot com
I have run into the same issue, just to get 5.0 to configure it required manually edit of the ./configure script to replace urs/lib with usr/lib64 in places.

Would be nice to have the configure script be able to look for /lib64 or a /usr/lib64 directory when compiling.
PHP Copyright © 2001-2023 The PHP Group
All rights reserved.
Last updated: Tue Jan 31 01:05:52 2023 UTC