utahcon Posted January 11, 2007 Share Posted January 11, 2007 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... nochecking for MySQL UNIX socket location... nochecking for mysql_close in -lmysqlclient... nochecking for mysql_error in -lmysqlclient... noconfigure: 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 -lmysqlclientconfigure: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 -lmysqlclientcollect2: ld returned 1 exit statusconfigure: 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. Quote Link to comment https://forums.phpfreaks.com/topic/33806-mysql-and-php/ Share on other sites More sharing options...
the_oliver Posted January 12, 2007 Share Posted January 12, 2007 Stab in the dark.... Are you actualy using suse-linux like it says? Also are the files owned by the correct user with the right permisions? Quote Link to comment https://forums.phpfreaks.com/topic/33806-mysql-and-php/#findComment-158757 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.