php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #47972 php-5.2.4 gives "configure: error: mysql configure failed"
Submitted: 2009-04-15 12:41 UTC Modified: 2009-04-24 01:00 UTC
Votes:7
Avg. Score:5.0 ± 0.0
Reproduced:6 of 6 (100.0%)
Same Version:4 (66.7%)
Same OS:4 (66.7%)
From: diwakar211 at gmail dot com Assigned:
Status: No Feedback Package: MySQL related
PHP Version: 5.2.9 OS: AIX-5.3
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: diwakar211 at gmail dot com
New email:
PHP Version: OS:

 

 [2009-04-15 12:41 UTC] diwakar211 at gmail dot com
Description:
------------
while doing configure in php-5.2.4

# ./configure --prefix=/opt/freeware --with-
apxs2=/opt/freeware/apache/bin/apxs --disable-cgi --enable-cli --
with-config-file-path=/opt/freeware/apache/conf  --with-
mysql=/opt/freeware/mysql --with-zlib-dir=/opt/freeware

It gives

configure: error: mysql configure failed. Please check config.log for 
more information.

I refered some posts in this site, the solusion they given is to 
install 32 bit version of mysql
I have installed mysql-5.0.45-1 32 bit, but still i am getting the 
error.





Reproduce code:
---------------
configure

Expected result:
----------------
nothing

Actual result:
--------------
# ./configure --prefix=/opt/freeware --with-
apxs2=/opt/freeware/apache/bin/apxs --disable-cgi --enable-cli --
with-config-file-path=/opt/freeware/apache/conf  --with-
mysql=/opt/freeware/mysql --with-zlib-dir=/opt/freeware




"
checking for MING support... no
checking for mSQL support... no
checking for MSSQL support via FreeTDS... no
checking for MySQL support... yes
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.

"
-- 

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2009-04-15 14:21 UTC] iliaa@php.net
Please try using this CVS snapshot:

  http://snaps.php.net/php5.2-latest.tar.gz
 
For Windows:

  http://windows.php.net/snapshots/


 [2009-04-16 04:39 UTC] diwakar211 at gmail dot com
Thanks for the reply

i have used the latest version that you provided

 http://snaps.php.net/php5.2-latest.tar.gz

but still i am getting same issue, please help me out
 [2009-04-16 10:42 UTC] jani@php.net
How about doing what configure tells you: Check config.log ?
 [2009-04-24 01:00 UTC] php-bugs at lists dot php dot net
No feedback was provided for this bug for over a week, so it is
being suspended automatically. If you are able to provide the
information that was originally requested, please do so and change
the status of the bug back to "Open".
 [2009-06-29 07:23 UTC] amiroot at yahoo dot com
I'm using RedHat EL5 64bit and I encounter the same problem.

I installed both 32 and 64 version of libmysqlclient.so which located in /usr/lib/mysql and /usr/lib64/mysql respectively. Sounds like the configure script seek for only /usr/lib/mysql. Here is the error in config.log

configure:60459: gcc -o conftest -I/usr/include -g -O2 -pthread  -D_REENTRANT -Wl,-rpath,/usr/lib/mysql -L/usr/lib/mysql -L/usr/lib  -Wl,-rpath,/usr/kerberos/lib64 -L/usr/kerberos/lib64 -Wl,-rpath,/usr -L/usr conftest.c -lmysqlclient_r  -lz -lmcrypt -lltdl -lcrypt -lpam -lfreetype -lpng -lz -ljpeg -lgdbm -lcurl -lz -lresolv -lm -ldl -lnsl  -lxml2 -lz -lm -lcurl -lgssapi_krb5 -lkrb5 -lk5crypto -lcom_err -lresolv -ldl -lidn -lssl -lcrypto -lz -lxml2 -lz -lm -lgssapi_krb5 -lkrb5 -lk5crypto -lcom_err -lssl -lcrypto -ldl -lz 1>&5
/usr/bin/ld: skipping incompatible /usr/lib/mysql/libmysqlclient_r.so when searching for -lmysqlclient_r
/usr/bin/ld: skipping incompatible /usr/lib/mysql/libmysqlclient_r.a when searching for -lmysqlclient_r
/usr/bin/ld: cannot find -lmysqlclient_r
collect2: ld returned 1 exit status
configure: failed program was:
#line 60448 "configure"
#include "confdefs.h"
/* Override any gcc2 internal prototype to avoid an error.  */
/* We use char because int might match the return type of a gcc2
    builtin and then its argument prototype would still apply.  */
char mysql_error();

int main() {
mysql_error()
; return 0; }
 [2009-06-29 07:36 UTC] amiroot at yahoo dot com
Sorry I missed the version of PHP I tried. It failed on PHP 5.2.10 and ALL php 5.3 CSV. But it works for PHP 5.2.9
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Fri Apr 19 22:01:28 2024 UTC