"libmysqlclient.so.6" not found. (what does /sbin/ldconfig /usr/local/lib/mysql do ?)

sweeting at neuronet.com.my sweeting at neuronet.com.my
Fri Jul 23 05:21:55 EDT 1999


When building Python from source, and with the MySQLmodule in the
Modules directory, I got the following error :

Shared object "libmysqlclient.so.6" not found
*** Error code 1

But libmysqlclient.so.6 does indeed exist in /usr/local/lib/mysql.

Fortunately, somebody had  come across this in a previous post/thread
and the cure was to run " /sbin/ldconfig /usr/local/lib/mysql" before
compiling. Sure enough this worked and now I have a fully functioning
Python interpreter (and environment)  :)

However, upon rebooting the machine, if I try to run a Python program
it will again complain that "libmysqlclient.so.6" can not be found
(since the MySQLmodule is shared). Once again
running " /sbin/ldconfig /usr/local/lib/mysql"  cures the problem but
does this mean that I have to run it each and every time I restart the
computer, as part of my startup scripts ? Is this error indicative of
there being a larger problem or misconfiguration ?

Thanking you in advance,

chas


Sent via Deja.com http://www.deja.com/
Share what you know. Learn what you don't.




More information about the Python-list mailing list