in reply to Net::SNMP module make test failing

When you configure with --with-perl-modules and do make install in the top level directory, the perl modules should be build and installed for you - no need to go into perl/ and build them yourself.

Try perldoc NetSNMP::agent

Replies are listed 'Best First'.
Re^2: Net::SNMP module make test failing
by bowei_99 (Friar) on Sep 14, 2006 at 23:22 UTC
    That's what I thought, too. But the instructions for the application said to do so, and I figured it wouldn't hurt. Yet, when I run the application, I still get the same error as when I tried to install the module:
    [root@burvil perl]# /usr/local/netdisco/netdisco -u root Can't load '/usr/lib/perl5/site_perl/5.8.5/i386-linux-thread-multi/aut +o/NetSNMP/default_store/default_store.so' for module NetSNMP::default +_store: libnetsnmp.so.10: cannot open shared object file: No such fil +e or directory at /usr/lib/perl5/5.8.5/i386-linux-thread-multi/DynaLo +ader.pm line 230. at /usr/lib/perl5/site_perl/5.8.5/i386-linux-thread-multi/SNMP.pm lin +e 16 Compilation failed in require at /usr/lib/perl5/site_perl/5.8.5/i386-l +inux-thread-multi/SNMP.pm line 16. BEGIN failed--compilation aborted at /usr/lib/perl5/site_perl/5.8.5/i3 +86-linux-thread-multi/SNMP.pm line 16. Compilation failed in require at /usr/lib/perl5/site_perl/5.8.5/SNMP/I +nfo.pm line 16. BEGIN failed--compilation aborted at /usr/lib/perl5/site_perl/5.8.5/SN +MP/Info.pm line 16. Compilation failed in require at /usr/local/netdisco/netdisco line 25. BEGIN failed--compilation aborted at /usr/local/netdisco/netdisco line + 25. [root@burvil perl]#
    So, even though perldoc NetSNMP::agent gives me a valid manpage, the error still occurs. What I need is NetSNMP::default_store, not NetSNMP::agent, to avoid the error.

    -- Burvil

      NetSNMP::default_store was also installed fine for me, and can be loaded without any errors.
      $ perl -MNetSNMP::default_store -e 'print "foo\n";' foo
      Shot in the dark, but maybe you need to refresh your ld cache?
        How would I update the ld cache?

        -- Burvil