Python 2.5.1
MySQL 5.0.51
MySQL-python-1.2.2
gcc version 4.0.2 20050901 (prerelease) (SUSE Linux)
SUSE 10.0 (i586)
---------------------------------------------------------------
I have been struggling with this for a full day. Bascially when I
try:
>>>import MySQLdb
... I get:
>>> import MySQLdb
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "MySQLdb/__init__.py", line 19, in <module>
import _mysql
File "build/bdist.linux-i686/egg/_mysql.py", line 7, in <module>
File "build/bdist.linux-i686/egg/_mysql.py", line 6, in
__bootstrap__
ImportError: libmysqlclient_r.so.15: cannot open shared object file:
No such file or directory
I have downloaded MySQL and Python and compiled with the same
compiler. I successfully ran the build/install of MySQLdb
(mysql_config is in the PATH). I have assured that
libmysqlclient_r.so.15 resides in MySQL as a result of the install (it
is at $MYSQL_HOME/lib/mysql/libmysqlclient_r.so.15).
Where does Python expect this file to be? Because, it doesn't seem
that the current location is sufficient.
Thanks,
Rob
p.s. I have also seen this thread, and basically have the exact same problem if I uses SuSE packages rather than compiling my own MySQL and Python.
http://forums.mysql.com/read.php?50,133711,133711#msg-133711