On Tue, Aug 07, 2001 at 05:39:30PM +0800, Martin Chung wrote:
> Hi,
>
> I am using qmail-1.0.3 + vpopmail-4.9.10. After I compiled and installed
> them, I ran "vadddomain <mydomain>". It gave this error message:
>
> ./vadddomain: error in loading shared libraries: libmysqlclient.so.10:
> cannot open shared object file: No such file or directory
>
> I checked that I have mysql library in both /usr/lib/mysql and
> /usr/local/lib/mysql. I can also compiled vpopmail successfully. Why can it
> say that there is no mysql library?
When you run 'ldconfig -r' (or 'ldconfig -p' under Linux), do you see
libmysqlclient listed in there?
If not, you might need to run 'ldconfig -m /usr/local/lib/mysql'
under a BSD system, or 'ldconfig /usr/local/lib/mysql' under Linux
(not sure about SysV ldconfig(8) syntax).
The FreeBSD port of MySQL accomplishes this by adding a startup
script that does 'ldconfig -m /usr/local/lib/mysql' at system
startup; this should be fairly easy to do under most OS's.
G'luck,
Peter
--
If you think this sentence is confusing, then change one pig.