Home: Perl Programming Help: Beginner:
Problem with DBI


Oct 26, 2013, 2:15 AM

Views: 1361
Problem with DBI

I am not able to connect with mysql using perl. I downloaded following binary:



I am getting following error during compilation


C:\Perl64\bin>perl c.pl
install_driver(mysql) failed: Can't loce]ate loadable object for module DBD::mysql in @INC (@INC contains: C:/Perl64/site/lib C:/Perl64/lib .) at (eval 3) line 3.
Compilation failed in require at (eval 3) line 3.
Perhaps a module that DBD::mysql requires hasn't been fully installed
at c.pl line 4.

C:\Perl64\bin>ppm install DBD::mysql
No missing packages to install


Kindly guide me.


Veteran / Moderator

Oct 26, 2013, 6:52 AM

Views: 1354
Re: [zak100] Problem with DBI

How did you initially install the DBD::mysql module?

Where there any errors/warnings during that install?

It's been several years since I tried to install DBD::mysql on a 64 bit perl via ppm and at that time the 64 bit version was not ready for prime time and always failed. That may not be the case anymore.

You could try uninstalling it then reinstall it via cpan instead of ppm. Before you install the module, you'll need to install MinGW so that you'll have the proper compiler to build modules from source.


MinGW might now be in Activestate's repository (it wasn't the last time I used Activestate), so you might be able to install it via ppm.

(This post was edited by FishMonger on Oct 26, 2013, 6:55 AM)