Yohann Dumais wrote:
> Now it is running:
> ps -ef | grep mysql
> root 19582 1 0 Nov22 ? 00:00:00
> /bin/sh bin/mysqld_safe --user=mysql
> mysql 19606 19582 0 Nov22 ? 00:00:28
> /usr/local/mysql/libexec/mysqld
> --basedir=/usr/local/mysql
> --datadir=/usr/local/mysql/data --user=mysql
> --pid-file=/usr/local/mysql/data/BLRMTL01.pid
> --skip-locking --port=3306
> --socket=/tmp/mysql.sock
> root 787 32608 0 11:00 pts/1 00:00:00
> grep mysql
>
> But if I do anything, for example
> /usr/local/mysql# bin/mysqladmin -version
> bin/mysqladmin: error while loading shared
> libraries: libmysqlclient.so.15: cannot open
> shared object file: No such file or directory
>
> What bugs me, is that I do have this shared
> library :
> locate libmysqlclient
> /usr/local/mysql/lib/mysql/libmysqlclient.so.15.0.
> 0
> /usr/local/mysql/lib/mysql/libmysqlclient.so.15
> /usr/local/mysql/lib/mysql/libmysqlclient.so
> /usr/local/mysql/lib/mysql/libmysqlclient.la
> /usr/local/mysql/lib/mysql/libmysqlclient.a
>
> I am thinking that something's wrong with my
> configure, I'm stomped.
The dynamic linker (ld.so) does not know it's supposed to search for these shared libs in that directory. You have several options to resolve this:
- Add /usr/local/mysql/lib/mysql to you LD_LIBRARY_PATH environment variable
- copy the shared mysqlclient.so files into /usr/local/lib and run "ldconfig -v"
- Add the path /usr/local/mysql/lib/mysql to /etc/ld.so.conf
You can use "ldd /usr/local/mysql/bin/mysql" to verify that all shared libs are actually found.
Hope that helps,
LenZ
Lenz Grimmer - MySQL Community Relations Manager -
http://de.sun.com/
Sun Microsystems GmbH, Sonnenallee 1, 85551 Kirchheim-Heimstetten, DE
Geschaeftsfuehrer: Thomas Schroeder, Wolfgang Engels
Vorsitz d. Aufsichtsrates: Martin Haering AG Muenchen: HRB161028