CGI/Perl Guide | Learning Center | Forums | Advertise | Login
Site Search: in

  Main Index MAIN
INDEX
Search Posts SEARCH
POSTS
Who's Online WHO'S
ONLINE
Log in LOG
IN

Home: Perl Programming Help: Beginner:
Problem with DBI

 



zak100
Novice

Oct 26, 2013, 2:15 AM

Post #1 of 2 (433 views)
Problem with DBI Can't Post

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

Post #2 of 2 (426 views)
Re: [zak100] Problem with DBI [In reply to] Can't Post

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)

 
 


Search for (options) Powered by Gossamer Forum v.1.2.0

Web Applications & Managed Hosting Powered by Gossamer Threads
Visit our Mailing List Archives