After upgrading Mac OS X to El Capitan, I got:
dyld: Library not loaded: libmysqlclient.18.dylib
trying:
sudo ln -s /usr/local/mysql/lib/libmysqlclient.18.dylib /usr/lib/libmysqlclient.18.dylib
I got:
ln: /usr/lib/libmysqlclient.18.dylib: Operation not permitted
Solution:
sudo ln -s /usr/local/mysql/lib/libmysqlclient.18.dylib /usr/local/lib/libmysqlclient.18.dylib