|There's more than one way to do things|
Getting DBD::mysql, Apache, and Perl to Work Togetherby tonyswu (Initiate)
|on Jul 10, 2013 at 23:40 UTC||Need Help??|
tonyswu has asked for the
wisdom of the Perl Monks concerning the following question:
I am trying to get OTRS to install on Mac. I've gone through all the modules installation and setup Apache. When I try to access the Perl page provided, however, I get this error in Apache:
[Wed Jul 10 16:28:56 2013] [error] install_driver(mysql) failed: Can't load '/Library/Perl/5.12/darwin-thread-multi-2level/auto/DBD/mysql/mysql.bundle' for module DBD::mysql: dlopen(/Library/Perl/5.12/darwin-thread-multi-2level/auto/DBD/mysql/mysql.bundle, 1): Library not loaded: libmysqlclient.18.dylib\n Referenced from: /Library/Perl/5.12/darwin-thread-multi-2level/auto/DBD/mysql/mysql.bundle\n Reason: no suitable image found. Did find:\n\t/usr/lib/libmysqlclient.18.dylib: stat() failed with errno=62 at /System/Library/Perl/5.12/darwin-thread-multi-2level/DynaLoader.pm line 204.\n at (eval 123) line 3\nCompilation failed in require at (eval 123) line 3.\nPerhaps a required shared library or dll isn't installed where expected\n at /opt/otrs//Kernel/System/DB.pm line 253\n
I did some googling, uninstall DBD::mysql and reinstall a couple of times using different flags, but I just can't get it to work. In my last attempt at reinstalling DBD::mysql I used these flags:
perl Makefile.pl --libs="-L/usr/local/mysql/lib -lmysqlclient" --cflags="-I/usr/local/mysql/include -Wno-null-conversion -Os -g -fno-strict-aliasing -arch x86_64" --testuser="test" --testpassword="test"
The libs and cflags parameters were copied from mysql_config. Make test passed with no error, and installation went fine. But when I tried to access through Apache, same error.
I am quite lost at the moment and not sure what my next step should be. If someone has run into this before and can provide some guidance, it would be very much appreciated.