Beefy Boxes and Bandwidth Generously Provided by pair Networks
Welcome to the Monastery

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:


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/ 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/ 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 --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.


Replies are listed 'Best First'.
Re: Getting DBD::mysql, Apache, and Perl to Work Together (ldd)
by Anonymous Monk on Jul 10, 2013 at 23:43 UTC

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: perlquestion [id://1043593]
Approved by ww
and all is quiet...

How do I use this? | Other CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (4)
As of 2018-02-22 04:04 GMT
Find Nodes?
    Voting Booth?
    When it is dark outside I am happiest to see ...

    Results (288 votes). Check out past polls.