[Pythonmac-SIG] Problem during installing MySQL module in Python - Other error

Jack Jansen Jack.Jansen at cwi.nl
Thu Dec 2 12:54:23 CET 2004


On 1 Dec 2004, at 08:27, Zsolt.Putnoky at alcatel.fr wrote:

>
> I had rebuilt MySQL 4.0.22 from the source and rebuilt Python 2.3.4 
> from the source. I tried to install the MySQL-Python module (version 
> 1.1.7), below is the result
>
> [Fiji:~/Temp/MySQL-python-1.1.7] zsoltput% set mysqlversion="4.0.22"
> [Fiji:~/Temp/MySQL-python-1.1.7] zsoltput% set mysqloptlib="ssl crypto"
>
> [Fiji:~/Temp/MySQL-python-1.1.7] zsoltput% /usr/local/bin/python 
> setup.py build
> running build
> running build_py
> running build_ext
> building '_mysql' extension
> gcc -bundle -bundle_loader /usr/local/bin/python2.3 
> build/temp.darwin-7.6.0-Power_Macintosh-2.3/_mysql.o 
> -L/usr/local/mysql/lib -lmysqlclient -lz -lcrypt -o 
> build/lib.darwin-7.6.0-Power_Macintosh-2.3/_mysql.so -flat_namespace
> ld: can't locate file for: -lcrypt
> error: command 'gcc' failed with exit status 1

MacOSX doesn't have a library libcrypt. Check the setup.py script to 
see whether it has any suggestions for it could be expecting from that 
library. If it's the fairly standard unix "crypt" function: that's in 
the standard library so you can just remove the crypt library..

If it's something else you may need to hunt around for it. There's a 
/usr/lib/libcrypto.dylib, but I have no idea what it contains..
--
Jack Jansen, <Jack.Jansen at cwi.nl>, http://www.cwi.nl/~jack
If I can't dance I don't want to be part of your revolution -- Emma 
Goldman



More information about the Pythonmac-SIG mailing list