linking shared libraries?


Subject: linking shared libraries?
From: Murias O'Ceallagh (linux@dragonsblood.net)
Date: Tue May 22 2001 - 23:49:32 MDT


*This message was transferred with a trial version of CommuniGate(tm) Pro*
I just compiled and installed the source of the latest MySQL onto my YDL
1.2.1 with kernel 2.2.17. It of course installed the libmysqlclient.so
in /usr/local/lib/mysql. So then I add the appropriate line to the
/etc/ld.so.conf as follows:

/usr/X11R6/lib
/usr/local/lib/mysql

then ran ldconfig -v got the following:

/usr/local/lib/mysql:
        libmysqlclient.so.10 => libmysqlclient.so.10.0.0

this all looked really groovey to me, and thought that all would be great.
Yeah, before I did all of this I did change my admin pwd adn started the
mysqld. :)

I waited until today to do all of this cause I did not want something
that I might not use sucking up precious system resources. But as of
today I needed the shared libs and a few other things from MySQL. to be
able to compile obs-0.3.0.... (irpd was fun to play with and great if not
doing anything serious-thank you Iain:)

but then I go to configure obs and I get the following:

checking for mysql_connect in -lmysqlclient... yes
checking libmysqlclient library availability... not ok
***
*** Cannot run mysqlclient test program. Either libmysqlclient.so is not
*** properly installed or the path to libmysqlclient.so is not
*** in the dynamic link path. To fix this on Linux make sure that the
*** path to libmysqlclient.so (usually /usr/local/lib/mysql) is in
*** /etc/ld.so.conf and that ldconfig has been run.

I attepmted to do ldconfig again and even shutdown the mysqld and then
ldconfig again then restarted the mysqld, but to no avail.

Would anyone happen to have any suggestions whatsoever? It would be
appreciated.
Thanx in advance.

~Murias



This archive was generated by hypermail 2a24 : Tue May 22 2001 - 22:53:55 MDT