First, you should keep threads on the list.

Second, I'm confused. Didn't you say that you already have libmysqlclient.so.10 in /usr/local/openv/lib?

If you need to get a new one, it apppears that to get it on Solaris, you need to build from source.

Michael

Nissim Lugasy wrote:

where can I download mysql 4.0 for solaris9 that include the shared library?
I downloaded mysql-max-4.0.21-sun-solaris2.9-sparc.tar.gz and I did not see
libmysqlcleint.so.10 file in the mysql/lib directory.



At 10:42 AM 9/23/2004 -0400, you wrote:

Nissim Lugasy wrote:

Hi,
I'm trying to compile my own mysql client program under solaris 9 without luck.
I have the mysql libraries under :
/usr/local/mysql-standard-4.0.20-sun-solaris2.9-sparc/lib and has the following files:
libdbug.a
libmysqlclient.a
libmysqld.a
libmysys.a
libmygcc.a
libmysqlclient_r.a
Don't I need to have the libmysqlclient.so.10 file here too?
on my system the libmysqlclient.so.10 is found under directory :/usr/local/openv/lib \
Should I move it /usr/lib instread?


I'm not sure why you'd have your libraries separated like that, but I'd make sure there wasn't a reason before moving one. Then I'd probably put all the mysql libs in the same place (i.e. move libmysqlclient.so.10), /usr/local/mysql-standard-4.0.20-sun-solaris2.9-sparc/lib in your case.

Here is what I tried and the errors I get:
When the makefile has:
#L LD=gcc -lm -lmysqlclient
the error is :
symbol mysql_init: referenced symbol not found


It didn't find libmysqlclient.so.10.

-------------------------------------------------------------------------

When the makefile has:
#L LD=gcc -lm -Wl,r/usr/local/openv/lib -lmysqlclient
the error is :
ld: fatal: file r/usr/local/openv/lib: open failed: No such file or directory


It still didn't find libmysqlclient.so.10, apparently because you have the syntax wrong.

--------------------------------------------------------------------------------------------------------

When the makefile has:
#L LD=gcc -lm -L/usr/local/mysql-standard-4.0.20-sun-solaris2.9-sparc/lib -lmysqlclient
the error is :
symbol mysql_init: referenced symbol not found


It didn't find libmysqlclient.so.10, because you told it to look in the wrong place.

-------------------------------------------------------------------------

any ideas to what I'm missing ?
Thanks


Try specifying the correct path with -L:

  #L LD=gcc -lm -L/usr/local/openv/lib -lmysqlclient

You may also need -R /usr/local/openv/lib so that your executable knows where to find libmysqlclient.so.10 at run time.

Michael




-- MySQL General Mailing List For list archives: http://lists.mysql.com/mysql To unsubscribe: http://lists.mysql.com/[EMAIL PROTECTED]



Reply via email to