Follow me as I struggle with rogue technology, insane programmers, and impossible math questions in a battle to the death.

Friday, December 05, 2008

Compiling python-mysql connector on a Mac

I just received a new Mac Book Pro at work (because my work is super awesome) and I'm trying to install a variety of software. Among this software is MySQL, and the python-mysql connector, so I can use Django with MySQL. I'm finding installing software on a Mac to be rather awkward in general compared to on Windows or Linux. I already tried MacPorts, Fink, and installing from dmg files, and all of them have left a bad taste in my mouth.

With the python-mysql connector specifically, I needed to compile it. Had I not found this page, I probably never would have gotten it working:

How to install Django with MySQL on Mac OS X

One more tip... I tried to use MySQL 64-bit on my Mac Book Pro which was 32-bit, and as a result I had some problems when I tried to make python-mysql talk to MySQL. Be careful about that you use the right version!

Labels: , ,