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

What is this "DBD::MySQL" and where did you get it?

The DBD-mysql distribution only comes with DBD::mysql

Case matters

As for DynaLoader, it comes with perl, you don't need to install it

See Re^5: Getting DBD-mysql to work with Mac OS X Lion and answer it

  • Comment on Re^7: Getting DBD-mysql to work with Mac OS X Lion

Replies are listed 'Best First'.
Re^8: Getting DBD-mysql to work with Mac OS X Lion
by bmckenzie (Sexton) on Jan 23, 2012 at 14:19 UTC
    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

      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