Mike McGrath wrote:
Can anyone shed some light on net-snmp-perl vs Net::SNMP? I've got a
program that uses Net::SNMP. I've installed net-snmp-perl. I can see
that there is an SNMP.pm on my system, yet when I run the script it
bombs at "use Net::SNMP"
Can't locate Net/SNMP.pm in @INC (@INC contains: nagios-plugins/libexec
/usr/lib/perl5/site_perl/5.8.6/i386-linux-thread-multi
/usr/lib/perl5/site_perl/5.8.5/i386-linux-thread-multi
/usr/lib/perl5/site_perl/5.8.4/i386-linux-thread-multi
/usr/lib/perl5/site_perl/5.8.3/i386-linux-thread-multi
/usr/lib/perl5/site_perl/5.8.6 /usr/lib/perl5/site_perl/5.8.5
/usr/lib/perl5/site_perl/5.8.4 /usr/lib/perl5/site_perl/5.8.3
/usr/lib/perl5/site_perl
/usr/lib/perl5/vendor_perl/5.8.6/i386-linux-thread-multi
/usr/lib/perl5/vendor_perl/5.8.5/i386-linux-thread-multi
/usr/lib/perl5/vendor_perl/5.8.4/i386-linux-thread-multi
/usr/lib/perl5/vendor_perl/5.8.3/i386-linux-thread-multi
/usr/lib/perl5/vendor_perl/5.8.6 /usr/lib/perl5/vendor_perl/5.8.5
/usr/lib/perl5/vendor_perl/5.8.4 /usr/lib/perl5/vendor_perl/5.8.3
/usr/lib/perl5/vendor_perl /usr/lib/perl5/5.8.6/i386-linux-thread-multi
/usr/lib/perl5/5.8.6 .) at ./check_ifoperstatus line 41.
BEGIN failed--compilation aborted at ./check_ifoperstatus line 41.
I'd like to avoid using CPAN to install the modules (as I'm trying to
package this for Fedora-Extras). I've seen some posts on this as it
related to FC2 but nothing relating to FC3 or FC4. Any ideas?
net-snmp-perl and Net::SNMP are two different things.
net-snmp-perl is the perl bindings for the snmp library at
http://net-snmp.sourceforge.net/, which provides an SNMP.pm without the
Net:: prefix.
Net::SNMP is a perl module from http://search.cpan.org/dist/Net-SNMP/
which provides Net::SNMP (i.e. it would be
/usr/lib/perl5/vendor_perl/5.8.5/Net/SNMP.pm). You can find RPMs for
this package in Dag's repo: http://dag.wieers.com/packages/perl-Net-SNMP/
Paul.