jwallaceausmbco Posted August 20, 2010 Share Posted August 20, 2010 Im at my lengths end 1 more keystroke away from throwing my laptop across the room >.< To point: I'm trying to install PHP 5.3.3 32bit with Mysql 5.1.50 on Apache 2.2.8 I've had numerous errors but have solved most of them up till this point. the ./config im using is ./configure --prefix=/usr/local/php --with-apxs2=/usr/sbin/apxs2 --with-mysql=--with-mysql-dir=/var/lib/mysql --with-zlib-dir=/usr/lib And it dies with the following error: checking for MySQL support... yes checking for specified location of the MySQL UNIX socket... 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. The config.log says: int main() { mysql_close() ; return 0; } configure:60574: checking for mysql_error in -lmysqlclient configure:60593: gcc -o conftest -I/usr/include -g -O2 -fvisibility=hidden -L/usr/lib -Wl,-rpath,/usr -L/usr conftest.c -lmysqlclient -lz -lz -lm -ldl -lnsl -lxml2 -lz -lm -lxml2 -lz -lm 1>&5 /usr/lib/gcc/i586-suse-linux/4.3/../../../../i586-suse-linux/bin/ld: cannot find -lmysqlclient collect2: ld returned 1 exit status configure: failed program was: #line 60582 "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'm absolutely stuffed lost and at my ends... Any help is very much appreciated. Quote Link to comment 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.