Platform: True64Unix V5.1 Python: Python 2.4.4 MySQLdb MySQL-python-1.2.1-p2
I have compiled and installed both Python & MySQLdb apparently without errors.
When issuing the command in python >>> import MySQLdb
I get the message
ImportError: dlopen: /usr/local/lib/python2.4/site-packages/_mysql.so: "compress" unresolved
Could anybody help with the meaning of this message and how to fix it please.
Many thanks
mysql_config --libs
-L /usr/local/mysql/lib -lmysqlcient -iz -im
ldd _mysql.so
Main => _mysql.so libpthread.so => /usr/shlib/libpthread.so libmach.so => /usr/shlib/libmach.so libexe.so => /usr/shlib/libexe.so libc.so => /usr/shlib/libc.so libm.so => /usr/shlib/libm.so
ldd libmysqlclient.so
I do not have this file. In /usr/local/mysql/lib i have libmysqlclient.a
Thanks Andrew
What output does this produce:
In short, you need libz (most likely), because your MySQL client libraries need it. Also look at:
and
ldd libmysqlclient.so # probably in /usr/local/lib/mysql
If it breaks on libz, that's your problem. libz is probably not on your default loader path.
Log in to post a comment.
Platform: True64Unix V5.1
Python: Python 2.4.4
MySQLdb MySQL-python-1.2.1-p2
I have compiled and installed both Python & MySQLdb apparently without errors.
When issuing the command in python
>>> import MySQLdb
I get the message
ImportError: dlopen: /usr/local/lib/python2.4/site-packages/_mysql.so: "compress" unresolved
Could anybody help with the meaning of this message and how to fix it please.
Many thanks
mysql_config --libs
-L /usr/local/mysql/lib -lmysqlcient -iz -im
ldd _mysql.so
Main => _mysql.so
libpthread.so => /usr/shlib/libpthread.so
libmach.so => /usr/shlib/libmach.so
libexe.so => /usr/shlib/libexe.so
libc.so => /usr/shlib/libc.so
libm.so => /usr/shlib/libm.so
ldd libmysqlclient.so
I do not have this file. In /usr/local/mysql/lib i have libmysqlclient.a
Thanks
Andrew
What output does this produce:
mysql_config --libs
In short, you need libz (most likely), because your MySQL client libraries need it. Also look at:
ldd _mysql.so
and
ldd libmysqlclient.so # probably in /usr/local/lib/mysql
If it breaks on libz, that's your problem. libz is probably not on your default loader path.