> > error in loading shared libraries: libmysqlclient.so.6: cannot open
> >
> > shared object file: no such file or directory.
>
>libmysqlclient.so.6 is not in your LD_LIBRARY_PATH, and not
>in the config file that specifies which paths should be there
>by default.
This assumes you're using an ELF-based system (Linux, or FreeBSD with the
Linux compat packages).
IMHO, the best way to add libraries to the search path is to edit
/etc/ld.so.conf (ld-elf.so.conf under FreeBSD) and add the path to the
bottom of the file. Rerun ldconfig as root. This will tell the runtime
dynamic linker to look in the path you've just specified for libraries.
Remember, you specify the path to the directory containing the libs you
want, not the libs themselves. For example, on my FreeBSD box, the
/etc/ld-elf.so.conf file looks like this:
[dan@bonsai dan]$ cat /etc/ld-elf.so.conf
/usr/local/pgsql/lib
/usr/local/mysql/lib
On a Linux box there will be more entries, for the system C libraries and
such like.
Hope this helps.
Dan
--
Daniel Fairs [EMAIL PROTECTED]
System Administrator +44 (0) 7881 922949
spiderplant.net www.spiderplant.net