Re: NetSNMP 5.3.1 Perl Module Problem

wanderchiou <[email protected]>
Newsgroups gmane.network.net-snmp.user
Message-ID <[email protected]>
Hello, 
 Thank you for quick response!
 
 My OS is Fedora Core 4.
 
 [root@ss manager]# uname -a
 Linux ss.under.test.com 2.6.11-1.1369_FC4 #1 Thu Jun 2 22:55:56 EDT 2005 i686 i686 i386 GNU/Linux
 
 I did "./configure --enable-ipv6". However,  "make  test",  only  34th test does not pass.
 
 [root@ss ]#make test
 34:testing authentication failure traps are sent by snmpd...FAIL
 Summary: 58 / 59 succeeded.
 
 [root@ss ]#make install
 
 I use default value to install snmp and perl module.
 
 I install snmp into  /usr/local/bin/ 
 [root@ss ld.so.conf.d]# which snmpgetnext
 /usr/local/bin/snmpgetnext
 
 I install perl module into  /usr/lib/perl5/site_perl/5.8.6/i386-linux-thread-multi
 [root@ss i386-linux-thread-multi]# pwd
  /usr/lib/perl5/site_perl/5.8.6/i386-linux-thread-multi
  [root@ss i386-linux-thread-multi]# ls
  auto  Bundle  DCOP  DCOP.pm  NetSNMP  OpenIPMI.pm  RPM2.pm  SNMP.pm
  [root@ss i386-linux-thread-multi]#
 
 
 [root@ss perl]# ldconfig -X -N        (Excuse me! Is it right?)
 [root@ss perl]# perl Makefile.PL
 Checking if your kit is complete...
 Looks good
 Writing Makefile for NetSNMP::default_store
 Checking if your kit is complete...
 Looks good
 Writing Makefile for NetSNMP::ASN
 Checking if your kit is complete...
 Looks good
 Writing Makefile for NetSNMP::OID
 Checking if your kit is complete...
 Looks good
 Writing Makefile for NetSNMP::agent::default_store
 Writing Makefile for NetSNMP::agent
 Checking if your kit is complete...
 Looks good
 Writing Makefile for SNMP
 Checking if your kit is complete...
 Looks good
 Warning: prerequisite NetSNMP::OID 5.1 not found.
 Writing Makefile for NetSNMP::TrapReceiver
 Writing Makefile for Bundle::NetSNMP
 [root@ss perl]#make
 [root@ss perl]# make test
 make[1]: Entering directory `/root/net-snmp-5.3.1/perl/default_store'
 make[1]: Leaving directory `/root/net-snmp-5.3.1/perl/default_store'
 make[1]: Entering directory `/root/net-snmp-5.3.1/perl/ASN'
 make[1]: Leaving directory `/root/net-snmp-5.3.1/perl/ASN'
 make[1]: Entering directory `/root/net-snmp-5.3.1/perl/OID'
 make[1]: Leaving directory `/root/net-snmp-5.3.1/perl/OID'
 make[1]: Entering directory `/root/net-snmp-5.3.1/perl/agent'
 make[2]: Entering directory `/root/net-snmp-5.3.1/perl/agent/default_store'
 make[2]: Leaving directory `/root/net-snmp-5.3.1/perl/agent/default_store'
 make[1]: Leaving directory `/root/net-snmp-5.3.1/perl/agent'
 make[1]: Entering directory `/root/net-snmp-5.3.1/perl/SNMP'
 make[1]: Leaving directory `/root/net-snmp-5.3.1/perl/SNMP'
 make[1]: Entering directory `/root/net-snmp-5.3.1/perl/TrapReceiver'
 make[1]: Leaving directory `/root/net-snmp-5.3.1/perl/TrapReceiver'
 make[1]: Entering directory `/root/net-snmp-5.3.1/perl/default_store'
 PERL_DL_NONLAZY=1 /usr/bin/perl "-I../blib/lib" "-I../blib/arch" test.pl
 1..64
 Can't load '../blib/arch/auto/NetSNMP/default_store/default_store.so' for module NetSNMP::default_store: libnetsnmp.so.10: cannot open shared object file: No such file or directory at /usr/lib/perl5/5.8.6/i386-linux-thread-multi/DynaLoader.pm line 230.
  at test.pl line 71
 Compilation failed in require at test.pl line 71.
 BEGIN failed--compilation aborted at test.pl line 71.
 not ok 1
 make[1]: *** [test_dynamic] Error 255
 make[1]: Leaving directory `/root/net-snmp-5.3.1/perl/default_store'
 make: *** [test] Error 2
 
 Another question: How to verify the Perl module of Net-SNMP has  been installed succssfully?
 
 [root@ss ld.so.conf.d]# perl
 use SNMP;
 Can't load '/usr/lib/perl5/site_perl/5.8.6/i386-linux-thread-multi/auto/NetSNMP/default_store/default_store.so' for module NetSNMP::default_store: libnetsnmp.so.10: cannot open shared object file: No such file or directory at /usr/lib/perl5/5.8.6/i386-linux-thread-multi/DynaLoader.pm line 230.
  at /usr/lib/perl5/site_perl/5.8.6/i386-linux-thread-multi/SNMP.pm line 16
 Compilation failed in require at /usr/lib/perl5/site_perl/5.8.6/i386-linux-thread-multi/SNMP.pm line 16.
 BEGIN failed--compilation aborted at /usr/lib/perl5/site_perl/5.8.6/i386-linux-thread-multi/SNMP.pm line 16.
 Compilation failed in require at - line 1.
 BEGIN failed--compilation aborted at - line 1.
 
 
 Thank you very much!
 
 Best Regards, 
 Wan-Der Chiou
 

Thomas Anders <[email protected]> 說: wanderchiou wrote:
>   I want to ask two questions:
>   1. NetSNMP 5.3.1 Perl Module  support TCP/IPv6, UDP/IPv6 or not?
> As I know the agent does not support IPv6, when I add UDP/IPv6, TCP/IPv6 Public Domain options into SNMP-Conifg.h, the agent compilation does not pass.
>   May I sent a snmp-get via UDP/IPv6 in Perl?

"./configure --enable-ipv6 ..." is the proper way to enable IPv6 for the
toolkit. What platform are you on?

> [root@ss perl]# make test
[...]
> Can't load '../blib/arch/auto/NetSNMP/default_store/default_store.so' for module NetSNMP::default_store: libnetsnmp.so.10: cannot open shared object file: No such file or directory at /usr/lib/perl5/5.8.6/i386-linux-thread-multi/DynaLoader.pm line 230.
>  at test.pl line 71

Looks like you didn't properly install the net-snmp libraries. Did you
install them to a standard location where your loader is looking for
libraries? Did you update the loader cache (on Linux: ldconfig)?

Then, still, "make test" in the perl directory likely won't run
perfectly anyway. Feel free to ignore most of the test errors as long as
only *some* of the tests fail.


+Thomas

-- 
Thomas Anders (thomas.anders at blue-cable.de)


 ___________________________________________________ 
 最新版 Yahoo!奇摩即時通訊 7.0,免費網路電話任你打! 
 http://messenger.yahoo.com.tw/

-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642

_______________________________________________
Net-snmp-users mailing list
[email protected]
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.