Code Comments

Programming Forum and web based access to our favorite programming groups.
For Programmers: Free Programming Magazines | New: Database administration forum
Registration is free! Edit your profileCalendarFind other membersFrequently Asked QuestionsSearch -> 
Post New Thread











Thread
Author

PHP config fails - cannot find lmysqlclient
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-zli
b-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 -W
l,-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

Report this thread to moderator Post Follow-up to this message
Old Post
PBroome
08-22-07 12:01 AM



Halle Berry and Britney Spears
 Having Fun On The Piano!

Report this thread to moderator Post Follow-up to this message
Old Post
Poencedickder28
08-30-07 07:46 PM


Sponsored Links




Last Thread Next Thread Next
Search this forum -> 
Post New Thread

PHP Installation archive

Show a Printable Version Send to friend Email This Page to Someone! subscribe to this thread Receive updates to this thread
Computer Consultants
Programming Jobs
Visual Basic Controls
SQL Server Programming
Webservices
Java Security
Visual Studio
C# Programming
Visual J++
Software engineering
Open source Software
Perl Programming
PHP Programming
ASP Programming
ASP .NET Programming
Visual Basic Programming
Windows Scripting Host
Java Programming
Java Help
Java Beans
VBScript
Cobol
MAC Applications
Unix Programming
Forum Jump:
All times are GMT. The time now is 03:27 PM.

 
Free MCSE Braindumps | Real Estate Topics

Programming forum archive

Copyrights CodeComments.com 2004 - 2006

Powered by vBulletin Copyright 2000-2006 Jelsoft Enterprises Limited.