From: ernesto dot cappello at st dot com
Operating system: RedHat Enterprise Linux WS rel3
PHP version: 5.2.5
PHP Bug Type: MySQL related
Bug description: Installation problem using .configure command
Description:
------------
Hi at all.
I desire to install PHP version 5.2.5 on my Linux Server (Red Hat
Enterprise Linux WS rel3).
I've already installed MySQL version 5.1.23(precisely from
mysql-5.1.23-rc-linux-i686-glibc23.tar ) and Apache version 1.3.41 without
problem.
When I execute the following command:
./configure --with-apxs=/usr/local/apache/bin/apxs
--with-mysql=/usr/local/mysql --with-zlib-dir=/usr/lib
But the installation doesn't work with the following error:
...
...
checking for LDAP Cyrus SASL support... no
checking whether to enable multibyte string support... no
checking whether to enable multibyte regex support... yes
checking whether to check multibyte regex backtrack... yes
checking for external libmbfl... no
checking for mcrypt support... no
checking for mhash support... no
checking whether to include mime_magic support... no
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.
The last lines of the "config.log" file are:
...
...
configure:59623: gcc -o conftest -I/usr/include -g -O2
-Wl,-rpath,/usr/local/mysql/lib -L/usr/local/mysql/lib -L/usr/lib
-L/usr/local/mysql/lib -Wl,-rpath,/usr/local/lib -L/usr/local/lib
conftest.c -lmysqlclient -lz -lresolv -lm -ldl -lnsl -lxml2 -lz -lm
-lxml2 -lz -lm 1>&5
/usr/bin/ld: skipping incompatible /usr/local/mysql/lib/libmysqlclient.so
when searching for -lmysqlclient
/usr/bin/ld: skipping incompatible /usr/local/mysql/lib/libmysqlclient.a
when searching for -lmysqlclient
/usr/bin/ld: skipping incompatible /usr/local/mysql/lib/libmysqlclient.so
when searching for -lmysqlclient
/usr/bin/ld: skipping incompatible /usr/local/mysql/lib/libmysqlclient.a
when searching for -lmysqlclient
/usr/bin/ld: cannot find -lmysqlclient
collect2: ld returned 1 exit status
configure: failed program was:
#line 59612 "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_close();
int main() {
mysql_close()
; return 0; }
configure:59846: checking for mysql_error in -lmysqlclient
configure:59865: gcc -o conftest -I/usr/include -g -O2
-Wl,-rpath,/usr/local/mysql/lib -L/usr/local/mysql/lib -L/usr/lib
-L/usr/local/mysql/lib -Wl,-rpath,/usr/local/lib -L/usr/local/lib
-Wl,-rpath,/usr -L/usr conftest.c -lmysqlclient -lz -lz -lresolv -lm -ldl
-lnsl -lxml2 -lz -lm -lxml2 -lz -lm 1>&5
/usr/bin/ld: skipping incompatible /usr/local/mysql/lib/libmysqlclient.so
when searching for -lmysqlclient
/usr/bin/ld: skipping incompatible /usr/local/mysql/lib/libmysqlclient.a
when searching for -lmysqlclient
/usr/bin/ld: skipping incompatible /usr/local/mysql/lib/libmysqlclient.so
when searching for -lmysqlclient
/usr/bin/ld: skipping incompatible /usr/local/mysql/lib/libmysqlclient.a
when searching for -lmysqlclient
/usr/bin/ld: cannot find -lmysqlclient
collect2: ld returned 1 exit status
configure: failed program was:
#line 59854 "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; }
Expected result:
----------------
The command:
./configure --with-apxs=/usr/local/apache/bin/apxs
--with-mysql=/usr/local/mysql --with-zlib-dir=/usr/lib
have to install correctly php with mysql and apache.
--
Edit bug report at http://bugs.php.net/?id=44732&edit=1
--
Try a CVS snapshot (PHP 5.2):
http://bugs.php.net/fix.php?id=44732&r=trysnapshot52
Try a CVS snapshot (PHP 5.3):
http://bugs.php.net/fix.php?id=44732&r=trysnapshot53
Try a CVS snapshot (PHP 6.0):
http://bugs.php.net/fix.php?id=44732&r=trysnapshot60
Fixed in CVS: http://bugs.php.net/fix.php?id=44732&r=fixedcvs
Fixed in release:
http://bugs.php.net/fix.php?id=44732&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=44732&r=needtrace
Need Reproduce Script: http://bugs.php.net/fix.php?id=44732&r=needscript
Try newer version: http://bugs.php.net/fix.php?id=44732&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=44732&r=support
Expected behavior: http://bugs.php.net/fix.php?id=44732&r=notwrong
Not enough info:
http://bugs.php.net/fix.php?id=44732&r=notenoughinfo
Submitted twice:
http://bugs.php.net/fix.php?id=44732&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=44732&r=globals
PHP 4 support discontinued: http://bugs.php.net/fix.php?id=44732&r=php4
Daylight Savings: http://bugs.php.net/fix.php?id=44732&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=44732&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=44732&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=44732&r=float
No Zend Extensions: http://bugs.php.net/fix.php?id=44732&r=nozend
MySQL Configuration Error: http://bugs.php.net/fix.php?id=44732&r=mysqlcfg