MySQLdb on Mac
People who know my current views on relational databases may be surprised that I’m mucking around in MySQL land, but if you’re trying to build the MySQLdb python module on Mac and, after building and installing from the packaged setup.py, end up with terrifying errors like this:
Traceback (most recent call last):
File “”, line 1, in ?
File “build/bdist.macosx-10.3-fat/egg/MySQLdb/__init__.py”, line 19, in ?
File “build/bdist.macosx-10.3-fat/egg/_mysql.py”, line 7, in ?
File “build/bdist.macosx-10.3-fat/egg/_mysql.py”, line 6, in __bootstrap__
ImportError: Failure linking new module: /Users/peterdolan/.python-eggs/MySQL_python-1.2.2-py2.4-macosx-10.3-fat.egg-tmp/_mysql.so: Library not loaded: /usr/local/mysql/lib/mysql/libmysqlclient_r.15.dylib
Referenced from: /Users/peterdolan/.python-eggs/MySQL_python-1.2.2-py2.4-macosx-10.3-fat.egg-tmp/_mysql.so
Reason: image not found
give the prepackaged installer available down the page here a try!