Entry
How do i install a module from CPAN ?
Nov 18th, 2002 08:30
lee goddard, Murat Uenalan,
The traditional way is to have a copy of the Make program
on your command path (or nmake.exe for Windowds users).
Then, you unpack the tarball (compressed file of the module,
with the extension .tar.gz) into a temporary directory, and
execute these commands in that directory:
perl Makefile.PL
make
make test
make install
Much easier, is from the command line, type:
perl -MCPAN -e "install Module"
where "Module" is a valid Module name (i.e. IO::Extended).
If you have installed the ActiveState version of Perl
("ActivePerl"), you probably have their Perl Package Manager
too. Try typing "ppm" at the command line, and if that gives
you some nice results, try "install Module",
where "Module" is a valid PPM package name (ie DBD-Mysql).
Sadly, valid PPM package names are not the same as standard
Perl Module names: you will have to substitute the :: in
the Module name for a hypthen - if that fails, you can always
type "search Module".