make sure you have -L/usr/local/mysql/lib/mysql/ in your compile
and make sure that /usr/local/mysql/lib/mysql/ is in your shared object
cache.
ldconfig -r will list your current cache entries.
if /usr/local/mysql/lib/mysql/libmysqlclient.so.10 is not in there then add
the path:
/sbin/ldconfig -m /usr/local/mysql/lib/mysql/ to add the directory to the
cache.
regards,
-- Andrew
----- Original Message -----
From: "Alonso Guarisma" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Cc: "Keith Rambo" <[EMAIL PROTECTED]>
Sent: Monday, March 19, 2001 5:26 PM
Subject: problems with linking
> Dear MySQL Sirs,
> I have been trying to run a simple client program using the C API and
> unfortunatelly I am still getting the same error over and over again:
> ./client1: error in loading shared libraries: libmysqlclient.so.10:
> cannot open shared object file: No such file or directory
>
> Attached is the output of the libraries directory when I execute ls -l
> I cannot understand why the program does not find the library, I would
> really appreciate any help from you regarding this matter, because I
> already tried the options you provide in the MySQL manual (Section 20.3
> Problems when linking the MySQL client library).
>
> I also think the problems related to this library is causing me failures
> when I try to install the GUI for MySQL.
>
> I hope to hear from you as soon as possible, sincerely
>
> Alonso Guarisma
>
----------------------------------------------------------------------------
----
> alonso@linux:~ > ls -l /usr/local/mysql/lib/mysql/
> total 972
> -rw-r--r-- 1 mysqladm mysqlgrp 11822 Feb 11 16:02 libdbug.a
> -rw-r--r-- 1 mysqladm mysqlgrp 34846 Feb 11 16:02 libheap.a
> -rw-r--r-- 1 mysqladm mysqlgrp 15246 Feb 11 16:02 libmerge.a
> -rw-r--r-- 1 mysqladm mysqlgrp 230180 Feb 11 16:02 libmyisam.a
> -rw-r--r-- 1 mysqladm mysqlgrp 23312 Feb 11 16:02 libmyisammrg.a
> -rw-r--r-- 1 mysqladm mysqlgrp 182284 Feb 11 16:02 libmysqlclient.a
> -rwxr-xr-x 1 mysqladm mysqlgrp 721 Feb 11 16:02 libmysqlclient.la
> lrwxrwxrwx 1 mysqladm root 24 Feb 11 16:02
libmysqlclient.so -> libmysqlclient.so.10.0.0
> lrwxrwxrwx 1 mysqladm root 24 Feb 11 16:02
libmysqlclient.so.10 -> libmysqlclient.so.10.0.0
> -rwxr-xr-x 1 mysqladm mysqlgrp 134367 Feb 11 16:02
libmysqlclient.so.10.0.0
> -rw-r--r-- 1 mysqladm mysqlgrp 31540 Feb 11 16:02 libmystrings.a
> -rw-r--r-- 1 mysqladm mysqlgrp 190742 Feb 11 16:02 libmysys.a
> -rw-r--r-- 1 mysqladm mysqlgrp 102344 Feb 11 16:02 libnisam.a
>
----------------------------------------------------------------------------
----
> ---------------------------------------------------------------------
> Before posting, please check:
> http://www.mysql.com/manual.php (the manual)
> http://lists.mysql.com/ (the list archive)
>
> To request this thread, e-mail <[EMAIL PROTECTED]>
> To unsubscribe, e-mail
<[EMAIL PROTECTED]>
> Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php
---------------------------------------------------------------------
Before posting, please check:
http://www.mysql.com/manual.php (the manual)
http://lists.mysql.com/ (the list archive)
To request this thread, e-mail <[EMAIL PROTECTED]>
To unsubscribe, e-mail <[EMAIL PROTECTED]>
Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php