#44732 [Opn->Bgs]: Installation problem using .configure command
| From: | jani@php.net | Date: | Tue, 15 Apr 2008 14:15:15 +0000 |
| Subject: | #44732 [Opn->Bgs]: Installation problem using .configure command | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-124256@lists.php.net to get a copy of this message | ||
ID: 44732
Updated by: jani@php.net
Reported By: ernesto dot cappello at st dot com
-Status: Open
+Status: Bogus
Bug Type: MySQL related
Operating System: RedHat Enterprise Linux WS rel3
PHP Version: 5.2.5
New Comment:
Sorry, but your problem does not imply a bug in PHP itself. For a
list of more appropriate places to ask for help using PHP, please
visit http://www.php.net/support.php as this bug system
is not the
appropriate forum for asking support questions. Due to the volume
of reports we can not explain in detail here why your report is not
a bug. The support channels will be able to provide an explanation
for you.
Thank you for your interest in PHP.
Previous Comments:
------------------------------------------------------------------------
[2008-04-15 10:11:33] ernesto dot cappello at st dot com
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 this bug report at http://bugs.php.net/?id=44732&edit=1