W
Warrick FitzGerald
Hi All,
I can't seem to use SNMP.pm on my box.
=====
#!/usr/bin/perl -w
use SNMP;
print "test \n";
=====
Fails with the following error:
=====
[root@Uploads wfitzgerald]# ./test.pl
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/i386-linux-thread-multi
/usr/lib/perl5/site_perl/5.8.1 /usr/lib/perl5/site_perl
/usr/lib/perl5/vendor_perl/5.8.1/i386-linux-thread-multi
/usr/lib/perl5/vendor_perl/5.8.1 /usr/lib/perl5/vendor_perl/5.8.0
/usr/lib/perl5/vendor_perl .) at ./test.pl line 2.
BEGIN failed--compilation aborted at ./test.pl line 2.
=====
However the module is in it's @INC path
=========
It's there:
[root@Uploads wfitzgerald]# find /usr/lib/perl5/vendor_perl/5.8.1 |
grep -i snmp
/usr/lib/perl5/vendor_perl/5.8.1/i386-linux-thread-multi/auto/Net/SNMP
/usr/lib/perl5/vendor_perl/5.8.1/Net/SNMP
/usr/lib/perl5/vendor_perl/5.8.1/Net/SNMP/MessageProcessing.pm
/usr/lib/perl5/vendor_perl/5.8.1/Net/SNMP/Dispatcher.pm
/usr/lib/perl5/vendor_perl/5.8.1/Net/SNMP/Message.pm
/usr/lib/perl5/vendor_perl/5.8.1/Net/SNMP/Security
/usr/lib/perl5/vendor_perl/5.8.1/Net/SNMP/Security/Community.pm
/usr/lib/perl5/vendor_perl/5.8.1/Net/SNMP/Security/USM.pm
/usr/lib/perl5/vendor_perl/5.8.1/Net/SNMP/PDU.pm
/usr/lib/perl5/vendor_perl/5.8.1/Net/SNMP/Transport
/usr/lib/perl5/vendor_perl/5.8.1/Net/SNMP/Transport/UDP.pm
/usr/lib/perl5/vendor_perl/5.8.1/Net/SNMP/Security.pm
/usr/lib/perl5/vendor_perl/5.8.1/Net/SNMP.pm
=====
Any ideas?
Thanks
Warrick
I can't seem to use SNMP.pm on my box.
=====
#!/usr/bin/perl -w
use SNMP;
print "test \n";
=====
Fails with the following error:
=====
[root@Uploads wfitzgerald]# ./test.pl
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/i386-linux-thread-multi
/usr/lib/perl5/site_perl/5.8.1 /usr/lib/perl5/site_perl
/usr/lib/perl5/vendor_perl/5.8.1/i386-linux-thread-multi
/usr/lib/perl5/vendor_perl/5.8.1 /usr/lib/perl5/vendor_perl/5.8.0
/usr/lib/perl5/vendor_perl .) at ./test.pl line 2.
BEGIN failed--compilation aborted at ./test.pl line 2.
=====
However the module is in it's @INC path
=========
It's there:
[root@Uploads wfitzgerald]# find /usr/lib/perl5/vendor_perl/5.8.1 |
grep -i snmp
/usr/lib/perl5/vendor_perl/5.8.1/i386-linux-thread-multi/auto/Net/SNMP
/usr/lib/perl5/vendor_perl/5.8.1/Net/SNMP
/usr/lib/perl5/vendor_perl/5.8.1/Net/SNMP/MessageProcessing.pm
/usr/lib/perl5/vendor_perl/5.8.1/Net/SNMP/Dispatcher.pm
/usr/lib/perl5/vendor_perl/5.8.1/Net/SNMP/Message.pm
/usr/lib/perl5/vendor_perl/5.8.1/Net/SNMP/Security
/usr/lib/perl5/vendor_perl/5.8.1/Net/SNMP/Security/Community.pm
/usr/lib/perl5/vendor_perl/5.8.1/Net/SNMP/Security/USM.pm
/usr/lib/perl5/vendor_perl/5.8.1/Net/SNMP/PDU.pm
/usr/lib/perl5/vendor_perl/5.8.1/Net/SNMP/Transport
/usr/lib/perl5/vendor_perl/5.8.1/Net/SNMP/Transport/UDP.pm
/usr/lib/perl5/vendor_perl/5.8.1/Net/SNMP/Security.pm
/usr/lib/perl5/vendor_perl/5.8.1/Net/SNMP.pm
=====
Any ideas?
Thanks
Warrick