mirror of
https://github.com/PyMySQL/mysqlclient.git
synced 2025-08-16 12:27:03 +08:00
It seems that MySQL-3.23 clients must be linked against libz.
This commit is contained in:
@ -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
|
||||||
|
@ -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
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user