I've just installed MySQL-python-1.2.3c1. When I tried to import MySQLdb
I encouned the following error messge:
import MySQLdb
File "build/bdist.linux-i686/egg/MySQLdb/init.py", line 19, in <module>
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: /usr/lib/mysql/libmysqlclient_r.so.14: undefined symbol: uncompress
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
A bit late in the day to add to this, but maybe worth adding to the README:
one can have the zlib development libraries and still be stuck. I found that
the libs_r line of /usr/lib/mysql/mysql_config did not have the -lz flag;
once I added that and recompiled, all was well.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I've just installed MySQL-python-1.2.3c1. When I tried to import MySQLdb
I encouned the following error messge:
import MySQLdb
File "build/bdist.linux-i686/egg/MySQLdb/init.py", line 19, in <module>
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: /usr/lib/mysql/libmysqlclient_r.so.14: undefined symbol: uncompress
Read README: You need zlib development libraries.
My python version is 2.5, MYSQL is 4.1
A bit late in the day to add to this, but maybe worth adding to the README:
one can have the zlib development libraries and still be stuck. I found that
the libs_r line of /usr/lib/mysql/mysql_config did not have the -lz flag;
once I added that and recompiled, all was well.