Hi,
Well I've spent some time learning about OS X Unix with the excellent Lynda.com tutorial. I uninstalled the Oracle mySQL and installed the one from MacPorts. It seems to be working OK -- I dragged my old DBs from the Windows PC into /opt/local/var/db/mysql5 and they show up in phpMyAdmin as expected.
Alas, all this work does not seem to have impressed DBD::MySQL, which still fails in require as follows:
Can't load '/Library/Perl/5.12/darwin-thread-multi-2level/auto/DBD/mys
+ql/mysql.bundle' for module DBD::mysql: dlopen(/Library/Perl/5.12/dar
+win-thread-multi-2level/auto/DBD/mysql/mysql.bundle, 1): Library not
+loaded: libmysqlclient.18.dylib Referenced from: /Library/Perl/5.12/d
+arwin-thread-multi-2level/auto/DBD/mysql/mysql.bundle Reason: image n
+ot found at /System/Library/Perl/5.12/darwin-thread-multi-2level/Dyna
+Loader.pm line 204. at /Users/Bruce/Sites/public_html/cgi-bin/ptest.p
+l line 17 Compilation failed in require at /Users/Bruce/Sites/public_
+html/cgi-bin/ptest.pl line 17. BEGIN failed--compilation aborted at /
+Users/Bruce/Sites/public_html/cgi-bin/ptest.pl line 17.
The perl script ptest.pl is a simple "Hello, World" that runs without complaint if I comment out the line "use DBD::MySQL;" Diagnosis with otool was recommended in some of the online discussion. I ran
otool -L /Library/Perl/5.12/darwin-thread-multi-2level/auto/DBD/mysql/mysql.bundle
I got this result: libmysqlclient.18.dylib (compatibility version 18.0.0, current ver
+sion 18.0.0)
/usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current v
+ersion 159.1.0)
Suggestions for further troubleshooting are very welcome. I suppose the MacPorts perl distro might work better with their mySQL, but it seems like there ought to be a simpler solution.
Cheers,
Bruce
|