Jump to content

mySQL and PHP


Recommended Posts

So I have lighttpd installed just fine.

I had PHP installed just fine.

They worked together.

Then I installed mySQL, and it works.

I am trying to configure PHP to use mySQL, with

[code]./configure --with-mysql=/usr/local/mysql/[/code]

Which is where mySQL is installed, but I am getting this

[code]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.[/code]

I opened config.log and here is what it says

[code]
configure:58254: checking for mysql_error in -lmysqlclient
configure:58273: gcc -o conftest -I/usr/include -g -O2  -Wl,-rpath,/usr/local/mysql//lib -L/usr/local/mysql//lib -L/usr/lib $
/usr/lib64/gcc/x86_64-suse-linux/4.1.0/../../../../x86_64-suse-linux/bin/ld: skipping incompatible /usr/local/mysql//lib/lib$
/usr/lib64/gcc/x86_64-suse-linux/4.1.0/../../../../x86_64-suse-linux/bin/ld: cannot find -lmysqlclient
collect2: ld returned 1 exit status
configure: failed program was:
#line 58262 "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; }
[/code]

I am not sure how to fix this.
Link to comment
https://forums.phpfreaks.com/topic/33806-mysql-and-php/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.