For Programmers: Free Programming Magazines  


Home > Archive > PHP Installation > August 2007 > PHP config fails - cannot find lmysqlclient









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author PHP config fails - cannot find lmysqlclient
PBroome

2007-08-21, 7:01 pm

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
Poencedickder28

2007-08-30, 2:46 pm

Halle Berry and Britney Spears Having Fun On The Piano!
Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com