> Warrick FitzGerald wrote:
>>> Hi All,
>>> I can't seem to use SNMP.pm on my box.
>>> #!/usr/bin/perl -w
>>> use SNMP;
>>> print "test \n";
> use Net::SNMP;
> Looking at the online documentation for SNMP would have answered it
> for you: http://search.cpan.org/~dtown/Net-SN...ib/Net/SNMP.pm
Ok sorry I was trying to simplify my problem, but here's the real situation:
Could not load the Perl module SNMP! If net_snmp_perl_enable is
enabled then the SNMP module is required. Please see snmptt.html
for system requirements. Note: SNMPTT uses the Net-SNMP package's
SNMP module, NOT the CPAN Net::SNMP module!
died at /usr/sbin/snmptt line 249.
However as I showed it is installed (or so I belive anyway).
Since snmptt was not written by me, I'm really trying to figure out
what's going on. Even if I hard code the path
use lib qw(/usr/lib/perl5/site_perl/5.8.1/Net/);
use lib qw(/usr/lib/perl5/site_perl/5.8.1/Net/SNMP/);
I still get other errors so soemthings not right, I just don't know what.
Warrick FitzGerald wrote:
> Ok sorry I was trying to simplify my problem, but here's the real situation:
> When running snmptt, I get the same error
> [root@Uploads wfitzgerald]# /usr/sbin/snmptt
> --ini=/etc/snmptt/snmptt.ini --debug2
> Unknown option: debug2
> Config file /etc/snmptt/snmptt.ini loaded
> Can't locate SNMP.pm in @INC (@INC contains:
> /usr/lib/perl5/5.8.1/i386-linux-thread-multi /usr/lib/perl5/5.8.1
> /usr/lib/perl5/site_perl/5.8.1 /usr/lib/perl5/site_perl
> /usr/lib/perl5/vendor_perl/5.8.1 /usr/lib/perl5/vendor_perl/5.8.0
> /usr/lib/perl5/vendor_perl .) at (eval 2) line 1.
> Could not load the Perl module SNMP! If net_snmp_perl_enable is
> enabled then the SNMP module is required. Please see snmptt.html
> for system requirements. Note: SNMPTT uses the Net-SNMP package's
> SNMP module, NOT the CPAN Net::SNMP module!
OK. It's not installed, or installed in a location that's not part of
the default @INC.
I've never heard of it, but looking around the Internet brought me to
the FAQ, which explains how to install Net-SNMP.