Home: Perl Programming Help: Beginner:
Problem with DBI



zak100
User

Oct 26, 2013, 2:15 AM


Views: 1341
Problem with DBI

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

Quote

ActivePerl-5.16.3.1603-MSWin32-x64-296746

I am getting following error during compilation

Code
  

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

C:\Perl64\bin>



Kindly guide me.

Zulfi.


FishMonger
Veteran / Moderator

Oct 26, 2013, 6:52 AM


Views: 1334
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.

http://www.mingw.org/wiki/InstallationHOWTOforMinGW

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)