I'm new to Perl but I'd like to know more. For this purpose I downloaded the ActivePerl- .msi package and installed it on my computer OS XP Home. Xitami, PHP, MySQL were already installed, and PHP can connect to MySQL. Now I run the following code from the command line, file dbimodules.pl:


use DBI;
use DBD::mysql

and got the following error message:

Can't locate loadable object for module DBD::mysql in @INC<@INC contains: C:/Pe
rl/site/lib C:/Perl/lib .> at  C:\Xitami\cgi-bin\dbimodules.pl line 5
Compilation failed in require at C:\Xitami\cgi-bin\dbimodules.pl line 5.
BEGIN failed--compilation aborted at C:\Xitami\cgi-bin\dbimodules.pl line 5.

Perl itself is running fine.
I have been struggling with this problem for days, tried many things, with no success. Could anybody help me?
With regards idbgy

You need to install DBI and DBD::mysql.

Open the activestate/activeperl folder that was created on the hard drive when you install activeperl and open the documentation. Read the PPM directions which is what you use to install and manage modules with activeperl.

Then see this thread on another forum:


Hi KevinADC,

Thanks for your reply. I will follow your instructions.

With regards idbgy

@ KevinADC
After some struggling I succeeded to install DBD:MySql. Now the connection to Mysql is ok. Thanks!
With regards idbgy

This question has already been answered. Start a new discussion instead.