I had this issue when working with Django, I use brew
to install a lot of my Open Source programs and I needed to do the following since I used brew
to install mysql
:
sudo ln -s /usr/local/Cellar/mysql/5.5.20/lib/libmysqlclient.18.dylib /usr/lib/libmysqlclient.18.dylib
Be sure to replace with your version of the libraries!