Beefy Boxes and Bandwidth Generously Provided by pair Networks
Don't ask to ask, just ask
 
PerlMonks  

What's up with Class::DBI on Activestate Perl on windows via PPM?

by pernod (Chaplain)
on Sep 02, 2005 at 14:05 UTC ( #488652=perlquestion: print w/replies, xml ) Need Help??

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

Monks,

I have been playing around with Class::DBI these last few days. I have compiled my own Perl 5.8.6 on Windows XP with the MinGW tools, and installed Class::DBI via CPAN.pm. This works fine (for some definition of fine, but more on that in a potential future node).

I sent an example Class::DBI script to a colleague (who uses Activestate Perl), and told him to install Class::DBI. Activestates's repositories states that Class::DBI is version 0.96, which is the same version that I got from CPAN.

PPM installs ok, and reports that version 0.96 is installed, but when my script did not work I told him to look at the version number of his PPM-install.

C:\>perl -MClass::DBI -e "print $Class::DBI::VERSION" 0.95

Come again? Version 0.95? I have googled and super searched, and I'm not the only one who has experienced this. I am still unable to find an answer to why this happens, though. I know I can work around the entire issue by downloading the module(s) directly from CPAN and making PPD's myself, but frankly, that's a hassle. Not to mention the purgatory I would have to go through to get this on our production servers.

Is my google-fu not up to scratch (as it usually seems to be when I post something around here)? Or is something amiss with Class::DBI in Activestate's repository? I have in any case sent a message to Activestate support, although I don't know if that will do any good.

In the meantime, it looks like Class::DBI is not meant for us ...

pernod
--
Mischief. Mayhem. Soap.

Replies are listed 'Best First'.
Re: What's up with Class::DBI on Activestate Perl on windows via PPM?
by shenme (Priest) on Sep 02, 2005 at 15:10 UTC
    You are not alone. I've emailed ActiveState every couple months since February, stating the .ppm has been wrong since June 2004.

    Also see Repository has incorrect version of Class::DBI (2005-01-26) which I couldn't find the first time around. There are now other reports, which are also marked 'unconfirmed'

    It's not like they don't know about the problem. I can't imagine they don't know the usefulness of Class::DBI. You would think they would be embarrassed.

    Update: ikegami is right though. In one of my emails I mentioned the increasingly frequent times I see people saying "just use CPAN" to install, and asked AS "why that might be?". Anyway, after you've installed by other means, run this (distilled from other people's postings) to update the AS html docs:

    perl -M"ActivePerl::DocTools" -e "ActivePerl::DocTools::UpdateHTML(); ActivePerl
    ::DocTools::WriteTOC();"
    
Re: What's up with Class::DBI on Activestate Perl on windows via PPM?
by ikegami (Pope) on Sep 02, 2005 at 14:58 UTC
    Class::DBI appears to be a pure Perl module. You could simply unzip the files in the distro's lib/ directory into your Perl's site/lib/ directory.
Re: What's up with Class::DBI on Activestate Perl on windows via PPM?
by johnnywang (Priest) on Sep 02, 2005 at 17:42 UTC
    You may try another ppm repository, e.g., http://theoryx5.uwinnipeg.ca/ppms/, although it is 0.95. Just do: "ppm install http://theoryx5.uwinnipeg.ca/ppms/Class-DBI.pm"
      I just updated the Class-DBI package in the uwinnipeg repository to version 0.96.

        Thank you! I was a bit surprised when my colleague claimed to have installed 0.96 from the uwinnipeg repository during the weekend, since it was version 0.95 on friday ... Anyhow, I have received a reply from Activestate where they say my request for an update has been forwarded to the Perl team. Perhaps this will be fixed now.

        In other (old) news, this shows that The Monastery works in unexpected ways :)

        pernod
        --
        Mischief. Mayhem. Soap.

Activestate has now fixed this in their repository.
by pernod (Chaplain) on Sep 07, 2005 at 07:21 UTC

    I just received a mail from Activestate support, stating that this issue is fixed. I tried to install Class::DBI via ppm on a fresh Activestate Perl, and the $Class::DBI::VERSION reported is now 0.96.

    It seems I was lucky getting such a quick response, considering shenme's experience with Activestate. Anyway, we should be on our way to happy CDBI hacking now ...

    pernod
    --
    Mischief. Mayhem. Soap.

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: perlquestion [id://488652]
Approved by Corion
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (3)
As of 2019-08-24 20:53 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?