[Pythonmac-SIG] Installing mysql-python
Leslie Picardo
picardo@mac.com
Thu, 13 Feb 2003 17:59:05 -0800
I am running the Python 2.2.2 binary installation from fink under OS X
10.2.3
I have also succesfully installed Mysql using fink.
I've been running into problems in installing the mysql-python package
from
http://sourceforge.net/projects/mysql-python/
When I try to build
> python setup.py build
gcc -L/sw/lib -bundle -bundle_loader /sw/bin/python
build/temp.darwin-6.3-PowerMacintosh-2.2/_mysql.o -L/sw/lib/mysql
-L/sw/lib -L/sw/lib -lmysqlclient -lz -o
build/lib.darwin-6.3-PowerMacintosh-2.2/_mysql.so -flat_namespace
ld: can't locate file for: -lmysqlclient
error: command 'gcc' failed with exit status 1
I looked through google, sourceforge, and this list and a lot of people
seem to have hit this problem
but no one seems to have posted the solution. I can't figure out where
the problem is. Is it because the
libmysqlclient.a library is missing ? or do I have some compiler
flags missing that would use the dylib
file instead ? I am confused.
Note that both the fink binary and source installation leave a dangling
symbolic link to a non-existant
libmysqlclient.a file.
>ls -l /sw/lib/libmysqlclient*
lrwxr-xr-x 1 picardo admin 22 Feb 13 16:24 /sw/lib/libmysqlclient.a
-> mysql/libmysqlclient.a
lrwxr-xr-x 1 picardo admin 26 Feb 13 16:24
/sw/lib/libmysqlclient.dylib -> mysql/libmysqlclient.dylib
lrwxr-xr-x 1 picardo admin 23 Feb 13 16:24 /sw/lib/libmysqlclient.la
-> mysql/libmysqlclient.la
>ls -l /sw/lib/mysql
total 440
-rwxr-xr-x 1 root admin 220488 Jan 16 07:59
libmysqlclient.10.0.0.dylib
lrwxr-xr-x 1 root admin 27 Jan 24 14:55 libmysqlclient.10.dylib
-> libmysqlclient.10.0.0.dylib
Leslie