in reply to Re^7: Getting DBD-mysql to work with Mac OS X Lion
in thread Getting DBD-mysql to work with Mac OS X Lion

Strangely, in this instance case does not appear to matter -- I wrote that line of code "use DBD::MySQL" years ago -- and, for some reason, it has always worked -- on Windows and on Linux. The script fails in the same way if it is "DBD::mysql" or if I don't load DBD::mysql directly, but instead do DBI->connect("DBI:mysql:data . . .

My problem is not that the module isn't found, it's that DBD::mysql doesn't know where to find (or otherwise can't load) libmysqlclient.18.dylib. I don't know either! The closest I can get with Spotlight is /opt/local/lib/mysql5/libmysqlclient.16.dylib

Replies are listed 'Best First'.
Re^9: Getting DBD-mysql to work with Mac OS X Lion
by Anonymous Monk on Jan 23, 2012 at 14:24 UTC

    My problem is not ...

    Hi, yes, I know this

    DYLD_LIBRARY_PATH

    If you libmysqlclient.18.dylib http://bugs.mysql.com/bug.php?id=61243 https://groups.google.com/group/pylons-discuss/browse_thread/thread/57776c1e4e20a090/933e726b1bcc407a?show_docid=933e726b1bcc407a

    http://monkeyoncode.com/2011/07/how-to-fix-library-not-loaded-libmysqlclient18dylib