[DB-SIG] gcc -lc flag
ian@mulvany.net
ian@mulvany.net
27 Aug 2001 12:44:27 -0700
Hello,
When I try to build MySQLdb.py hte
build falls over at the following point:
$ python setup.py build
gcc -shared build/temp.linux-i686-2.0/_mysqlmodule.o -L/usr/lib/mysql -lmysqlclient -lz -o build/lib.linux-i686-2.0/_mysql.so
/usr/bin/ld: cannot find -lz
collect2: ld returned 1 exit status
error: command 'gcc' failed with exit status 1
If I omit the '-lz' flag I can build and install
but when I attempt to import MySQLdb I get the following:
# python setup.py install
Traceback (most recent call last):
File "<stdin>", line 1, in ?
File "/usr/lib/python2.0/site-packages/MySQLdb.py", line 19, in ?
import _mysql
ImportError: /usr/lib/python2.0/site-packages/_mysql.so: undefined symbol: uncompress
it's obvious that the -lz flag has something to do with
the problem, but i am unfamiliar with the flag.
Could anyone explain what the flag does and how I can get gcc to accept it or how I can get around the problem at all?
many thanks,
-Ian
|Ian Mulvany ;0| www.mulvany.net|