Jump to content

Problems installing PHP on Suse 11.0 with Webmin.


Recommended Posts

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.

 

 

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.