If you get above error, and in your script syntax like this,
use strict;
use Net::SNMP;
use Getopt::Long;
Then use the following step to install Net SNMP
Solution :-- Login as a root user on machine.
#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
After all this try to execute your script ..hope your problem resolved.
use strict;
use Net::SNMP;
use Getopt::Long;
Then use the following step to install Net SNMP
Solution :-- Login as a root user on machine.
#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
After all this try to execute your script ..hope your problem resolved.