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

I'm trying to connect to a DB2 database. I'm using activeperl v5.8.3. I used ppm to install DBI. No problems. But now, it won't find DBD::DB2 in any repository. I found it myself on the IBM site and downloaded it to my machine. (Win2000). When I try to install it I get "Error: no suitable installation target found for package DBD-DB2." What am I missing? Do I need to be bald to be a member of perlmonks, cuz I've pulled out most of my hair today! Thanks...

Replies are listed 'Best First'.
Re: Why Does PPM Give me this error?
by NetWallah (Canon) on Apr 13, 2004 at 19:58 UTC
    From the IBM website:

    NOTE: The DBD::DB2 module is not available for install with ActivePerl 5.8. If you are using ActivePerl 5.8, you can install the DBD::DB2 module by entering the following on the command line:

    ppm install ftp://ftp.esoftmatic.com/outgoing/DBI/5.8.2/DBD-DB2.ppd >

    Alternatively, you can go to the ftp site:
    ftp://ftp.esoftmatic.com/outgoing/DBI/5.8.2
    , and download the DBD-DB2.ppd and DBD-DB2-0.76-5.8.2.tar.gz files, and install them locally with this command:
    ppm install DBD-DB2.ppd

    The DBD::DB2 module requires the DBI module to be installed first, so if you have not yet installed DBI, you can do so by entering the following on the command line:
    ppm install ftp://ftp.esoftmatic.com/outgoing/DBI/5.8.2/DBI.ppd

    Folicular fortitude is optional for monks, so welcome aboard.

    Offense, like beauty, is in the eye of the beholder, and a fantasy.
    By guaranteeing freedom of expression, the First Amendment also guarntees offense.
Re: Why Does PPM Give me this error?
by runrig (Abbot) on Apr 13, 2004 at 20:00 UTC
    Open the ppm file in a text editor. The DBD probably was not compiled for your version of perl. This info is contained in the ppm file. You may either have to find another ppm file, or install a different version of perl.