I'm attempting to finish the installation, but when I go to Python and "import MySQLdb" I end up getting:
ImportError: dlopen(/Users/pccampbell/.python-eggs/MySQL_python-1.2.3-py2.7-macosx-10.5-fat3.egg-tmp/_mysql.so, 2): Library not loaded: libmysqlclient.16.dylib Referenced from: /Users/pccampbell/.python-eggs/MySQL_python-1.2.3-py2.7-macosx-10.5-fat3.egg-tmp/_mysql.so
I then run this command which everyone says works (and it does, but only temporarily!):
SO, I'm trying to execute the following to permanently change the path (as found on another help site):
sudo install_name_tool -change libmysqlclient.16.dylib /usr/local/mysql/lib/libmysqlclient.16.dylib lib/python2.7/site-packages/_mysql.so
BUT, I end up getting this error:
install_name_tool: can't open file: lib/python2.7/site-packages/_mysql.so (No such file or directory)
I found the _mysql.so file at, but even when I use this path it doesn't work:
THE BOTTOM LINE: is there a way to permanently modify the DYLD_LIBRARY_PATH, so I don't have to run the export command every time. If so, then could you please, please, please provide the specific syntax, because I've been guessing and checking for a long time.
Any help GREATLY appreciated.