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
| [reply] [d/l] [select] |
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.
| [reply] [d/l] [select] |
specifically, at the command line:
perl -MCPAN -e shell 'install DBI';
| [reply] [d/l] |
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
| [reply] |