I'm not sure if this should be considered
a bug, but since it was a new install in a
fairly conventional environment, I thought
I'd include it here with my workaround.
Debian Woody 2.1 Linux 2.2.20
MySQL 4.0.23 compiled from source
No changes were made to setup. Everything
was installed in the conventional directories.
Python 2.3.4 (#1, Jan 29 2005, 22:13:24)
[GCC 2.95.4 20011002 (Debian prerelease)] on linux2
Type "help", "copyright", "credits" or "license" for
Traceback (most recent call last):
File "<stdin>", line 1, in ?
line 27, in ?
ImportError: libmysqlclient.so.12: cannot open shared
object file: No such file or directory
Running ldd against _mysql.so produces:
libmysqlclient.so.12 => not found
The libmysqlclient.so.12 library is located
in /usr/local/mysql/lib/mysql, which is
included in the setup.py library_dirs.
My quick fix is to symlink it to /usr/lib:
ln -s /usr/local/mysql/lib/mysql/libmysqlclient.so.12 \ /usr/lib/libmysqlclient.so.12
Is there a better solution?
Log in to post a comment.