install_driver(mysql) failed: Can't load '/Library/Perl/5.12/darwin-th
+read-multi-2level/auto/DBD/mysql/mysql.bundle' for module DBD::mysql:
+mysql.bundle, 1): Library not loaded: libmysqlclient.18.dylib
Referenced from: /Library/Perl/5.12/darwin-thread-multi-2level/auto/
Reason: image not found at /System/Library/Perl/5.12/darwin-thread-m
+ulti-2level/DynaLoader.pm line 204.
at (eval 10) line 3
Compilation failed in require at (eval 10) line 3.
Perhaps a required shared library or dll isn't installed where expecte
at /Library/WebServer/CGI-Executables/hello.pl line 22
I think your script is running with perl 5.10 when called from the browser, and that your mySQL is compiled against perl 5.12. To see if this is the case, create the following script and compare the results you get when called from the browser and when called from the terminal.