If OS X would not let you enter the sudo ln command, it’s probably because of OS X’s System Integrity Protection, which is a total pain for LAMP developers who use OS X. The installation should work, and now you can use Perl with MySQL! What to do when you are not able to sudo ln Use CPAN to install DBD::MySQL install DBD::MySQL.Use CPAN (sudo cpan) to install DBI sudo cpan install DBI.Sudo ln -s /usr/local/mysql/lib/libmysqlclient.18.dylib /usr/lib/libmysqlclient.18.dylib Enter the command (see below if you can’t):.Open the Terminal and navigate to /usr/lib. Hence the error message “Library not loaded: libmysqlclient.18.dylib”. This is how you fix the problem. I cannot get Perl to work with MySQL, because the Perl module DBD::MySQL fails to install properly. The reason this happens is because one required dependency, libmysqlclient.18.dylib, could not be located by the install script. Every time I upgrade OS X, this issue comes up.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |