Something worng with perl or net-snmp-perl?
Morten Nilsen
morten@xxxxxxxxxx
Thu Oct 6 11:45:53 CEST 2005
Christopher Thorjussen wrote:
> I'm trying to get perl working with SNMP and have installed net-snmp* packages, but I get this error:
>
> root@box # perl
> use Net::SNMP;
>
> Can't locate Net/SNMP.pm in @INC (@INC contains: /usr/lib/perl5/5.8.5/i586-linux-thread-multi /usr/lib/perl5/5.8.5 /usr/lib/perl5/site_perl/5.8.5/i586-linux-thread-multi /usr/lib/perl5/site_perl/5.8.5 /usr/lib/perl5/site_perl /usr/lib/perl5/vendor_perl/5.8.5/i586-linux-thread-multi /usr/lib/perl5/vendor_perl/5.8.5 /usr/lib/perl5/vendor_perl .) at - line 1.
> BEGIN failed--compilation aborted at - line 1.
>
>
> I try to locate SNMP.pm and I get this:
>
> root@box # locate "SNMP.pm"
> /usr/lib/perl5/vendor_perl/5.8.5/i586-linux-thread-multi/SNMP.pm
>
> "/usr/lib/perl5/vendor_perl/5.8.5" is for what I can see in the @INC path...??
>
> Whats wrong?
use SNMP;
Net:: makes perl look for Net/SNMP.pm
--
Morten
More information about the tsl-contrib-discuss
mailing list