From OrganicDesign Wiki
| This procedure is incomplete. Go here for all incomplete procedures.
|
|
| This article describes a procedure which forms a part of the organisation's day-to-day running. See the procedures category for a complete list. This procedure defines using and installing packages from the Comprehensive Perl Archive Network (CPAN). CPAN requires root access, modules are installed into the Perl environment.
|
|
Documentation is available at perldoc CPAN.
1 Searching CPAN
The website http://search.cpan.org provides a search box to search for keywords associated with packages.
2 Installing modules
Once you know the module name you would like to install, you need to sudo as root and install the module, e.g.
|
| sudo -s
perl -MCPAN -e 'install Statistics::ChiSquare'
|
|
3 Interactive CPAN environment
Type;
|
| perl -MCPAN -s shell
# list of useful commands
help # list of available commands
o conf # configuration of CPAN
r # reinstall recommendations
i /statistics/ # pattern searching of authors, bundles, distributions, modules
get [Package] # fetch
make
install
|
|