MySQLdb under OS X Leopard

Stubbed my toe on this earlier today: The MySQLdb adapter must be compiled using the same architecture as the python you want to use it with. OS X Leopard ships with 32-bit Python, so to install it I had to manually set ARCHFLAGS=”-arch i386″ before building.

Also, for some reason clean did not empty the build directories. If you see a very short build (i.e. no compiler messages), manually clear the ./build directory.

Advertisement

~ by philippp on June 29, 2010.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Connecting to %s

 
Follow

Get every new post delivered to your Inbox.