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.


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to