Installing PERL modules using CPAN

From Organic Design wiki
Revision as of 18:11, 22 May 2015 by 127.0.0.1 (talk) (Change source-code blocks to standard format)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Procedure.svg Installing PERL modules using CPAN
Organic Design procedure

Documentation is available at perldoc CPAN.

Searching CPAN

The website http://search.cpan.org provides a search box to search for keywords associated with packages.

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'

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