mysqlosx-elcapitan

dyld: Library not loaded: libmysqlclient.18.dylib


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

  • Solution:

    sudo ln -s /usr/local/mysql/lib/libmysqlclient.18.dylib /usr/local/lib/libmysqlclient.18.dylib