Re: php and mysql won't communicate
I ran the following configure statement:
./configure --with-apxs2=/usr/sbin/apxs --with-mysqli=/tmp/php_src/php-5.0.5/ext/mysqli --with-mysql=/usr/lib64/mysql --with-zlib-dir=/usr/include
I received an error that said look at the config.log.
The error in that log was as follows:
configure:61637: checking for mysql_error in -lmysqlclient
configure:61656: gcc -o conftest -g -O2 -Wl,-rpath,/usr/lib/mysql -L/usr/lib/my
sql -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: cannot find -lmysqlclient
collect2: ld returned 1 exit status
configure: failed program was:
#line 61645 "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; }
I searched my machine for mysqlclient but as the errors says it's not on my machine.
++++++++++++++
If I run the same configure statement without the mysql extion like so:
./configure --with-apxs2=/usr/sbin/apxs --with-mysqli=/tmp/php_src/php-5.0.5/ext/mysqli --with-zlib-dir=/usr/include
I get an error that says:
configure: error: Please reinstall the mysql distribution
Which I don't want think I should have to do. Any ideas on how to solve this?
Subject
Written By
Posted
Re: php and mysql won't communicate
May 10, 2006 02:56PM
Sorry, you can't reply to this topic. It has been closed.
Content reproduced on this site is the property of the respective copyright holders.
It is not reviewed in advance by Oracle and does not necessarily represent the opinion
of Oracle or any other party.