Huge problem gettng MySQLdb to work on my mac mini running Macosx 10.5 Leopard

geert geert at nznl.com
Tue Mar 18 13:56:10 EDT 2008


On Mar 14, 1:15 pm, martin.lal... at gmail.com wrote:
> look athttp://groups.google.be/group/comp.lang.python/browse_thread/thread/d...
>
> There is a macpython list that you can consult athttp://www.nabble.com/Python---pythonmac-sig-f2970.html

Just wanted to let you know that I've solved my problem. The solution
is to compile mysql using

MACOSX_DEPLOYMENT_TARGET=10.5 \
CFLAGS='-arch i386 -arch x86_64 -arch ppc7400 -arch ppc64' \
LDFLAGS='-arch i386 -arch x86_64 -arch ppc7400 -arch ppc64' \
CXXFLAGS='-arch i386 -arch x86_64 -arch ppc7400 -arch ppc64' \
./configure --disable-dependency-tracking  --enable-thread-safe-client
--prefix=/usr/local/mysql

You then go this way to get it running on your machine:

http://hivelogic.com/articles/installing-mysql-on-mac-os-x/

Then reinstall MySQLdb. Magic!

Geert






More information about the Python-list mailing list