It seems that MySQL-3.23 clients must be linked against libz.

This commit is contained in:
adustman
2000-06-23 20:15:10 +00:00
parent 2056478d85
commit 3fa59b1ee5
2 changed files with 8 additions and 0 deletions

View File

@ -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 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. installed. Get Python 1.5.2 from your vendor or python.org.
<sect1>ImportError: ./_mysqlmodule.so: undefined symbol: uncompress
<sect1>./_mysqlmodule.c:33: mysql.h: No such file or directory <sect1>./_mysqlmodule.c:33: mysql.h: No such file or directory
<P>
It seems that MySQL-3.23 client libraries require libz for gzip
compression. Add -lz to the link line in Setup.
<P>The include path (-I) to your MySQL include files is wrong; modify <P>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 Setup. OR: You don't have the MySQL development stuff loaded. If you

View File

@ -4,6 +4,10 @@
# If you have dynamic MySQL libraries, they will need to be on your # If you have dynamic MySQL libraries, they will need to be on your
# LD_LIBRARY_PATH at runtime. # LD_LIBRARY_PATH at runtime.
_mysql _mysqlmodule.c -L/usr/lib/mysql -I/usr/include/mysql -lmysqlclient _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 # Uncomment for Windows
#_mysql _mysqlmodule.c -L/mysql/lib/opt -I/mysql/include -lmysqlclient -lwsock32 #_mysql _mysqlmodule.c -L/mysql/lib/opt -I/mysql/include -lmysqlclient -lwsock32