Greetings all,
I am trying to configure PHP 5.2.3 on my server. The current version of
MySQL is 5.0.27, Apache 1.3.x. The configure command is:
--------------------------
../configure --with-mysql --with-apxs=/usr/local/apache/bin/apxs --with-zlib-dir
--------------------------
All runs well (until it doesn't...) and it terminates (i.e. Fails) with the
following:
==========================================================================================================
configure:58925: checking for mysql_error in -lmysqlclient
configure:58944: gcc -o
onftest -I/usr/include -g -O2 -Wl,-rpath,/usr/lib/mysq
l -L/usr/lib/mysql -L/usr/lib -Wl,-rpath,/usr/local/lib -L/usr/local/lib -Wl,-r
path,/usr -L/usr
onftest.c -lmysqlclient -lz -lz -lresolv -lm -ldl -lnsl -lxm
[root@fla201 php-5.2.3]# tail -20 config.log
int main() {
mysql_close()
; return 0; }
configure:58925: checking for mysql_error in -lmysqlclient
configure:58944: gcc -o
onftest -I/usr/include -g -O2 -Wl,-rpath,/usr/lib/mysql -L/usr/lib/mysql -L/usr/lib
-Wl,-rpath,/usr/local/lib -L/usr/local/lib -Wl,-rpath,/usr -L/usr
conftest.c -lmysqlclient -lz -lz -lresolv -l
m -ldl -lnsl -lxml2 -lm -lxml2 -lm 1>&5
/usr/bin/ld: skipping incompatible /usr/lib/mysql/libmysqlclient.so when
searching for -lmysqlclient
/usr/bin/ld: skipping incompatible /usr/lib/mysql/libmysqlclient.a when
searching for -lmysqlclient
/usr/bin/ld: cannot find -lmysqlclient
collect2: ld returned 1 exit status
configure: failed program was:
#line 58933 "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; }
[root@fla201 php-5.2.3]#
========================================================================================================
I have tried to find all the references to "lmysqlclient" and there's not
much. I am just hoping someone out there has come across this problem and
has resolved it successfully. ANY help will be most appreciated.
Thanks,
Pete
[Index of Archives]
[PHP Users]
[PHP Home]
[PHP on Windows]
[Kernel Newbies]
[PHP Classes]
[Postgresql]
[PHP Books]
[PHP Databases]
[PHP SOAP]