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

How do I install Class::DBI using ActivePerl 5.8? I couldn't find any PPM repositories which contained it.

Replies are listed 'Best First'.
Re: Installing Class::DBI
by phydeauxarff (Priest) on Mar 06, 2003 at 15:32 UTC
Re: Installing Class::DBI
by impossiblerobot (Deacon) on Mar 06, 2003 at 15:29 UTC

    Class::DBI appears to be pure Perl, so you should be able to download it from CPAN and install it the "standard way."

    See tachyon's excellent A Guide to Installing Modules for more detail.

    Update: After Ovid's post, I tried building Class::DBI. Yikes! Even using the CPAN shell, getting Class::DBI installed was a nightmare. Please ignore my suggestion to install it the "standard way" if you value your sanity at all. :-)


    Impossible Robot

      Ordinarily, I'd be inclined to agree with you. However, Class::DBI has a huge number of dependencies. From the makefile:

      Class::Accessor => '0.16', Class::Data::Inheritable => '0.02', DBD::CSV => '0.1022', Ima::DBI => '0.26', Test::More => '0.11', File::Temp => '0.12', Class::Trigger => '0.03', UNIVERSAL::exports => '0.03'

      And guess what? Those modules have their own dependencies (such as Class::WhiteHole). Using PPM, CPAN or CPANPLUS is definitely the way to go. I've had to install Class::DBI by hand and it's a royal pain. I understand that the next version of Class::DBI will have fewer dependencies (thank goodness!)

      Cheers,
      Ovid

      New address of my CGI Course.
      Silence is Evil (feel free to copy and distribute widely - note copyright text)

        Thanks, Ovid. I had just looked at the manifest for Class ::DBI and noticed that there were no XS components; I didn't think about the possibility of excessive dependencies. :-)

        Even so, I probably should have mentioned the CPAN shell (which tachyon's guide does mention).


        Impossible Robot
Re: Installing Class::DBI
by jobber (Sexton) on Mar 06, 2003 at 15:11 UTC
    Hello, just log into ppm

    Then type "search DBI;"

    It will return the DBI module at spot 4 I think.

    Then just type "install 4" or whatever number it is.

    Hope this helps
Re: Installing Class::DBI
by Anonymous Monk on Mar 07, 2003 at 17:38 UTC
    Thankyou all very much for you're help.