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

Tim Jarman tim.jarman at lineone.net
Tue Mar 2 13:56:26 EST 2004


On Tuesday 02 Mar 2004 6:36 pm, Bob Ippolito wrote:
> 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

Lord bless you, guvnor, you have a lucky face!



More information about the Pythonmac-SIG mailing list