Friday, January 11, 2013

Force Installing with CPAN


CPAN is a powerful archive of Perl modules tools. It contains many modules to do just about anything one would want to do in Perl. In order to initiate a CPAN session via the perl comand line you can use the following command:
perl -MCPAN -e shell
Which will allow you to use CPAN in shell mode. Once you configure some settings you will be taken to a prompt. To install a module you can use
cpan> install LWP::Simple
The following will install the LWP::Simple package.
On occasion you may encounter errors in compiling the module. Some could be minor, some major. If you wish to force the installation anyhow you can use the force option
cpan> force install LWP::Simple

No comments:

Post a Comment