Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer
 
PerlMonks  

Re^5: DBD::Mysql not working properly in mac OS X

by romy_mathew (Beadle)
on Nov 04, 2013 at 19:04 UTC ( #1061178=note: print w/ replies, xml ) Need Help??


in reply to Re^4: DBD::Mysql not working properly in mac OS X
in thread DBD::Mysql not working properly in mac OS X

below is the error when i used use::Carp

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: + dlopen(/Library/Perl/5.12/darwin-thread-multi-2level/auto/DBD/mysql/ +mysql.bundle, 1): Library not loaded: libmysqlclient.18.dylib Referenced from: /Library/Perl/5.12/darwin-thread-multi-2level/auto/ +DBD/mysql/mysql.bundle 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 +d at /Library/WebServer/CGI-Executables/hello.pl line 22
I tried #!/usr/bin/perl5.12.4 failed with html error 500


Comment on Re^5: DBD::Mysql not working properly in mac OS X
Download Code
Re^6: DBD::Mysql not working properly in mac OS X
by tangent (Deacon) on Nov 04, 2013 at 19:33 UTC
    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.
    #!/usr/bin/perl print "Content-type: text/html\n\n"; my $command = `perl -v`; print "$command\n";
      it is showing perl 5.12.4 in both case.
        What is the path to this perl? Try  $^X -V or even  /usr/bin/perl -V because its quite possible that the first perl in path is not the one in shebang (not /usr/bin/perl)

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others browsing the Monastery: (6)
As of 2014-08-30 07:09 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The best computer themed movie is:











    Results (291 votes), past polls