diff --git a/mysql/MySQLdb-FAQ.sgml b/mysql/MySQLdb-FAQ.sgml index 2e0c1c4..023155d 100644 --- a/mysql/MySQLdb-FAQ.sgml +++ b/mysql/MySQLdb-FAQ.sgml @@ -37,7 +37,11 @@ LD_LIBRARY_PATH=/path/to/mysql/libs python ... # Bourne-ish shell linking against an earlier version. You may also have more than one version installed. Get Python 1.5.2 from your vendor or python.org. +ImportError: ./_mysqlmodule.so: undefined symbol: uncompress ./_mysqlmodule.c:33: mysql.h: No such file or directory +

+It seems that MySQL-3.23 client libraries require libz for gzip +compression. Add -lz to the link line in Setup.

The include path (-I) to your MySQL include files is wrong; modify Setup. OR: You don't have the MySQL development stuff loaded. If you diff --git a/mysql/Setup.in b/mysql/Setup.in index e96b82c..ba0612a 100644 --- a/mysql/Setup.in +++ b/mysql/Setup.in @@ -4,6 +4,10 @@ # If you have dynamic MySQL libraries, they will need to be on your # LD_LIBRARY_PATH at runtime. _mysql _mysqlmodule.c -L/usr/lib/mysql -I/usr/include/mysql -lmysqlclient + +# I find that 3.23 requires libz. +_mysql _mysqlmodule.c -L/usr/lib/mysql -I/usr/include/mysql -lmysqlclient -lz + # Uncomment for Windows #_mysql _mysqlmodule.c -L/mysql/lib/opt -I/mysql/include -lmysqlclient -lwsock32