Skip to main content

Posts

Showing posts with the label PERL

Can't locate Net/SNMP.pm in @INC

If you get error " Can't locate Net/SNMP.pm in @INC" while executing a perl script , and in your script syntax is as below, where Net::SNMP module is in use. use strict; use Net::SNMP; use Getopt::Long; Then use the following step to install Net SNMP Solution :-- Login as a Super user (root) user on machine.  Login to CPAN shell with following command. #perl -MCPAN -e shell cpan> install Bundle::CPAN cpan[1]> reload cpan  cpan[1]> reload index cpan[1]> install Net::SNMP  cpan[1]> install Getopt::Long cpan> exit Terminal does not support GetHistory. Lockfile removed. # After all this try to execute your script ..hopefully your problem will be resolved.

How to Upgrade to Perl 5.12.5 on Linux Machine

Upgrading Perl from source on Linux This tutorial explains how to compile Perl 5.12 for a Linux machine. In this tutorial, CentOS 5 / Red Hat Enterprise Linux 5 will be used, however the procedure should be quite similar for other distributions of Linux as well. Note:  You may be tempted to do a `yum remove perl` to remove the 5.8 version that your distribution came with. Don't. I'll give an explanation why later on. Does your vendor already have Perl 5.12? If you can install Perl 5.12 via yum, apt, portage, or whatever your package manager is, I highly recommend you do it. It's always better to install things so that your package manager is aware of their existence rather than to go ahead and install something behind its back. If all you can get is Perl 5.8, though, you'll need to compile it yourself. Download the Perl Source Just link to  http://search.cpan.org/dist/perl/  and click the "Download" link at the top of the page. That should get you th...