Perl, windows and CPAN Filed Under: Perl
After a long search going to different programming languages I managed to find one that I’m going to stick by and try to became good at it. And the winner is ………………
PERL !!!!!!!!!!!!
Well the main objective of this tutorial is to quickly explain how to install CPAN modules in general. I will explain now why I put windows in the title. The reason I done that, is because at work my laptop is running windows so I have to program Perl under windows and because it was a bit tricky to install CPAN modules under windows I decide to include it in this tutorial.
If you want to install modules from CPAN open a command line window and type the following (works both in windows and Linux).
perl -MCPAN -e "install {module_name}"
e.g. perl -MCPAN -e "install Net::SNMP"
.
If for any reason you needed to go to the shell you can do the following command perl -MCPAN -e "shell"
or type the command cpan (i still haven’t try this command under Linux as still haven’t had the need to go to the CPAN shell under Linux).
If by any chance you received the following message while installing a CPAN module:
make test had returned bad status, won’t install without force
Install the module under the CPAN shell using the following command that will skip any of the test.
cpan> force install {module_name}
e.g cpan> force install Net::SNMP
Now for those windows users around the world activeperl (the windows version of Perl) has a GUI for installing perl packages. The application is called Perl Packages Manager (ppm command or you can find it under the Start menu).
Thanks for reading
- Permalink
- Alberto Diaz
- 6 Jan 2008 12:31 PM
- Comments (0)