Re: (RW) PHP installation problems

From: Date: Thu, 27 Sep 2001 02:52:06 +0000
Subject: Re: (RW) PHP installation problems
References: 1 2  Groups: php.general 
Request: Send a blank email to php-general+get-68938@lists.php.net to get a copy of this message
At 27.09.2001 03:34, David Robley wrote:
gcc -o conftest -g -O2 -Wl,-rpath,/usr/local/mysql-3.22.32-pc-linux-gnu-i686//lib/mysql -L/usr/local/mysql-3.22.32-pc-linux-gnu-i686//lib/mysql conftest.c -lmysqlclient -lpng -lz -lgd -lresolv -lm -ldl -lcrypt -lnsl -lresolv 1>&5 /usr/bin/ld: cannot find -lmysqlclient collect2: ld returned 1 exit status Obviously, it's not finding the mysql client library (libmysqlclient) in the place its told to look, usr/local/mysql-3.22.32-pc-linux-gnu-i686//lib/mysql. However, that seems an odd location. Perhaps something about default locations in DeadRat? In the first instance, if you aren't using _anything_ else that requires the mysql client library, try recompiling using just the --with-mysql flag, without a path, to use the inbuilt (in PHP) mysql client.
Apart from the double slash it's not an entirely strange location as mysql has always stored it's header|libs|etc under it's own directory rather than in /usr/local/lib, the result is that libmysqlclient isn't found by ld because it's not in ld's config file (usually /etc/ld.so.conf)... But unless you have some reasons for not using the built in support, (bleeding-edge or whatever pleases you) go with the built in support... -- Andreas D Landmark / noXtension Real Time, adj.: Here and now, as opposed to fake time, which only occurs there and then.

« previous php.general (#68938) next »