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

Hi All: There is no DBI module in my perl lib,where can I download it and how to install it?

Replies are listed 'Best First'.
Re: No DBI module
by dws (Chancellor) on Sep 23, 2002 at 06:57 UTC
    There is no DBI module in my perl lib,where can I download it and how to install it?

    If you're using ActiveState Perl on win32   C:> ppm install dbi will do the trick. Then you'll need to install a driver (DBD) for whatever database you're using. E.g.,   C:> ppm install dbd-mysql

Re: No DBI module
by Abstraction (Friar) on Sep 23, 2002 at 05:27 UTC
    See CPAN for all your module needs.

    To install modules from the command line you can do a
    perl -MCPAN -e shell
    Then a install Module

    Update: Doh, spatacus9 beat me to the specifics.

    Update 2: For details on installing modules on all types of operating systems type perlmodinstall into the searchbox at the top of this page.

Re: No DBI module
by spartacus9 (Beadle) on Sep 23, 2002 at 05:29 UTC
    specifically, at the command line:
    perl -MCPAN -e shell 'install DBI';
Re: No DBI module
by Flexx (Pilgrim) on Sep 23, 2002 at 09:34 UTC

    Hi!

    I just want to mention that you could also surf to http://www.cpan.org and download and install it manually. This might be helpful when you're behind a nasty firewall, an you have a hard time configuring CPAN.pm to use it, or when you want to use a download manager to fetch pachages, etc.

    But personally, I like the CPAN shell much better. It'll keep track of module dependencies, give you a list of updated packages (via the 'r' command), and once you're used to it, you'll love it.

    So long,
    Flexx