VDS Sphera Knowledge Base
| Main / Browse Categories / Perl & CGI / How do I install Perl Modules using CPAN (Gnu Compiler Collection)? |
How do I install Perl Modules using CPAN (Gnu Compiler Collection)?
|
WARNING: DO NOT USE MCPAN in shell mode. It tries to upgrade to the latest version of Perl and that will not work.
These commands will NOT work: perl -MCPAN -e 'shell' perl -MCPAN -e 'install CGI'Instead, you will need to use this command: perl -MCPAN -e 'get CGI'If you get an error(s) similar to: Warning: prerequisite Class::Container failed to load: Can't locate Class/Container.pm in @INCYou should get and install Class::Container first, along with any other pre-requesites it squawks about. cd /.cpan/build perl Makefile.PL make make installA successful intallation will have something like the following near the last line of the make install output: Appending installation info to /usr/local/perl/lib/5.6.0/i686-linux/perllocal.pod
User Comments
|
||||||||
Attachments
| No attachments. |
Related Articles


