(original) (raw)


Thanks Jack for the info. I will take
a look once more. As far as I remember the setup.py does not contain specific
information about the thing it expects to find in that library.



/usr/lib/libcrypto.dylib
- this sounds interesting, I will check if I can find something more detailed
about this.



Have a good day,



Zsolt Putnoky







To:        Zsolt PUTNOKY/FR/ALCATEL@ALCATEL
cc:        pythonmac-sig@python.org
Subject:        Re: \[Pythonmac-SIG\] Problem during installing MySQL module in Python - Other error



On 1 Dec 2004, at 08:27, Zsolt.Putnoky@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@cwi.nl>, http://www.cwi.nl/\~jack
If I can't dance I don't want to be part of your revolution -- Emma
Goldman