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

Ronald Oussoren oussoren at cistron.nl
Wed Mar 3 02:16:11 EST 2004


On 2-mrt-04, at 18:45, 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

Follow the suggestion and run 'ranlib 
/usr/local/lib/mysql/libmysqlclient_r.a'.

This is a (mis)feature of OSX, you must run ranlib when copying an .a 
file. This is not necessary on most (all?) other Unix platforms.

Ronald
--
X|support bv            http://www.xsupport.nl/
T:  +31 610271479       F:  +31 204416173




More information about the Pythonmac-SIG mailing list