Difference between revisions of "Installing PERL modules using CPAN"

From Organic Design wiki
(New page: {{procedure |description = This proced...)
 
Line 15: Line 15:
 
perl -MCPAN -e 'install Statistics::ChiSquare'
 
perl -MCPAN -e 'install Statistics::ChiSquare'
 
</perl>}}
 
</perl>}}
 +
 +
==Interactive CPAN environment==
 +
Type;
 +
{{code|<perl>
 +
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
 +
</perl>
 +
}}
 +
Type ''help'' for a list of commands

Revision as of 11:32, 14 August 2008

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.

<perl>

sudo -s perl -MCPAN -e 'install Statistics::ChiSquare' </perl>

Interactive CPAN environment

Type;

<perl>

perl -MCPAN -s shell

  1. 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 </perl>

Type help for a list of commands