Beefy Boxes and Bandwidth Generously Provided by pair Networks
more useful options
 
PerlMonks  

Getting DBD::mysql, Apache, and Perl to Work Together

by tonyswu (Initiate)
on Jul 10, 2013 at 23:40 UTC ( #1043593=perlquestion: print w/ replies, xml ) Need Help??
tonyswu has asked for the wisdom of the Perl Monks concerning the following question:

Hi,

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.

Thanks.

Comment on Getting DBD::mysql, Apache, and Perl to Work Together
Select or Download Code
Re: Getting DBD::mysql, Apache, and Perl to Work Together (ldd)
by Anonymous Monk on Jul 10, 2013 at 23:43 UTC

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: perlquestion [id://1043593]
Approved by ww
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others pondering the Monastery: (8)
As of 2014-10-31 10:12 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    For retirement, I am banking on:










    Results (216 votes), past polls