perldesire has asked for the wisdom of the Perl Monks concerning the following question:

Hi, I want to install DBI module in my windows machine.

perl version i have is 5.8.0 i.e perl --version showed the following output.

"This is perl 5.8.0 built for MSWin32-x86-multithread"

I downloaded DBI-1.608 from cpan, and executed perl Makefile.PL it is throwing the following error...
"Perl v5.8.1 is required--this is only 5.8.0, stopped at Makefile.PL line 10. BEGIN failed--compilation aborted at Makefile.PL at 12."

Even I tried with DBI-1.607, its also throwing the same error?

Please guide to proceed the DBI installation.

Replies are listed 'Best First'.
Re: DBI module in windows
by Corion (Patriarch) on May 28, 2009 at 12:52 UTC

    What part of

    Perl v5.8.1 is required--this is only 5.8.0

    do you have problems understanding?

    What DBI tells you is, that Perl 5.8.0 is not supported by it. You will need to upgrade your version of Perl or find a really old version of DBI. Looking at DBI::Changes, it seems that version 1.605 is the last one that supports 5.8.0, but certainly, you've seen that already.

      In addition to what Corion just said...

      5.8.0 is really the first version of Perl 5.8, so it's very likely that there are more bugs in it, than in any following perl version.

      May DBI requires a feature that was not yet in perl 5.8.0, though it's also possible that there was a particular bug in perl getting on Tim Bunce's nerves, and instead of working around it, he requires that you use a version of perl where that bug is fixed.

      So, instead of trying to make DBI work on perl 5.8.0, you're likely better off upgrading perl (but I recommend you stay in 5.8.x, for the smoothest upgrade experience).

Re: DBI module in windows
by dHarry (Abbot) on May 28, 2009 at 12:54 UTC

    If possible upgrade your Perl version, that might be the easiest way out.

Re: DBI module in windows
by mikeraz (Friar) on May 28, 2009 at 15:57 UTC

    Should you be in an environment where upgrading your Perl version is not possible. (2nd level of hell?) the CPAN FAQ has guidance for you including a link to backpan.

    Go there if you must. Upgrading Perl or installing a second version on your box is really likely to be much less painful.


    Be Appropriate && Follow Your Curiosity
      hi, thank you so much for your reply.
      I have downloaded DBI1.54 which supports perl 5.8.0.

      Then when i was executing perl Makefile.PL, it asked to set some values in LIB and INCLUDE environment variables. I set those values. then it succeeded.

      Thank you all.