[Pythonmac-SIG] Building MySQLdb on OS X.3

Bob Ippolito bob at redivi.com
Tue Mar 2 13:36:26 EST 2004


On Mar 2, 2004, at 12:45 PM, Tim Jarman wrote:

> Hello folks,
> I'm having trouble installing MySQLdb on my shiny new iBook, possibly 
> due to
> my OS X newbie-hood. MySQL 4.0.18 is happily installed using the binary
> installer but that doesn't seem to have installed any headers/libs -- 
> not
> unreasonably. So I grabbed a source tarball and hacked setup.py to 
> point to
> its copies of include files/libraries, which it finds OK, but the 
> linker
> bombs with the following error:
>
> ld: table of contents for archive: 
> /usr/local/lib/mysql/libmysqlclient_r.a is
> out of date; rerun ranlib(1) (can't load from it)
> error: command 'gcc' failed with exit status 1
>
> Anyone seen this one before? Can it be fixed, and how? Or is there a 
> prebuilt
> binary of MySQLdb knocking about somewhere I can nick? (This kind of 
> thing is
> why I gave up on C many long years ago.)

man 1 ranlib
sudo ranlib /usr/local/lib/mysql/libmysqlclient_r.a

and there's a prebuilt one over at: http://undefined.org/python/pimp/

-bob
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 2357 bytes
Desc: not available
Url : http://mail.python.org/pipermail/pythonmac-sig/attachments/20040302/93b1b2c1/smime.bin


More information about the Pythonmac-SIG mailing list