Page 1 of 1

perl / mysql error in apache

PostPosted: 31. August 2009 19:41
by lee dixon
I'm running a perl script that connects to mysql. When I run the perl script outside of the web server it runs fine when I run it using the web server I get this message in the error log

Aug 31 14:00:04 2009] [error] [client 127.0.0.1] install_driver(mysql) failed: Can't load 'D:/xampp/perl/site/lib/auto/DBD/mysql/mysql.dll' for module DBD::mysql: load_file:The specified module could not be found at D:/xampp/perl/lib/DynaLoader.pm line 203.
[Mon Aug 31 14:00:04 2009] [error] [client 127.0.0.1] at (eval 7) line 3
[Mon Aug 31 14:00:04 2009] [error] [client 127.0.0.1] Compilation failed in require at (eval 7) line 3.
[Mon Aug 31 14:00:04 2009] [error] [client 127.0.0.1] Perhaps a required shared library or dll isn't installed where expected
[Mon Aug 31 14:00:04 2009] [error] [client 127.0.0.1] at D:/xampp/cgi-bin/display.pl line 12

I've tried uninstalling and re-installing several times (that was the most common recomendation on the web). I've chnged permissions to wide open, I've added the directory to the path.. all to no avail?

the mysql.dll is in the folder specified above.. its not really clear by the message weather it can't find mysql.dll or if its having troble with the DBD?

XAMPP and all its part is usually very easy to debug and use so I'm sure this is easy as well it just has me perplexed I've tried everything over the last two days. I'm stumpped .... Can anyone help an old guy out??

Re: perl / mysql error in apache

PostPosted: 31. August 2009 19:54
by Wiedmann
Aug 31 14:00:04 2009] [error] [client 127.0.0.1] install_driver(mysql) failed: Can't load 'D:/xampp/perl/site/lib/auto/DBD/mysql/mysql.dll' for module DBD::mysql: load_file:The specified module could not be found at D:/xampp/perl/lib/DynaLoader.pm line 203

Copy the file "libmysql.dll" from "D:\xampp\perl\bin" to "D:\xampp\perl\site\lib\auto\DBD\mysql".


I've tried uninstalling and re-installing several times (that was the most common recomendation on the web)

That's the problem with Google. Most answers are 90% useless (because many people without knowledge posting a lot of things around the web). Thus Google should always the last resource, after reading the manual, searching or asking on a support channel for a product.

Re: perl / mysql error in apache

PostPosted: 31. August 2009 20:11
by lee dixon
That has moved me on to my next error.... Thank you very much for your help and your good advice!!!!!!