Installing Perl Modules
Testing for Installed Modules
To test if you have a module, try to run the command
perl -e "use Module::Name"
If there are no errors, you are in business.
Testing for presence and version number:
perl -MGD -e 'print $GD::VERSION'; perl -MSet::Array -e 'print $Set::Array::VERSION'; perl -MGetopt::Long -e 'print $Getopt::Long::VERSION';
Installing from CPAN
To install directly from CPAN:
perl -MCPAN -e shell
This opens the interactive CPAN download/install tool. At the cpan prompt, type
cpan> install Set::Scalar
Alternatively, you can just type this:
perl -MCPAN -e "install Bundle::BioPerl"
Hint: upgrade to the latest version of CPAN:
cpan> install Bundle::CPAN
Installing from binary package
What To Do Once You've Downloaded A Module From The CPAN href="http://www.cpan.org/modules/INSTALL.html
After upacking the perl module package, cd to the newly created directory and enter these commands:
perl Makefile.PL make make test make install