[x]
Posted via EE Mobile

Search, ask, and monitor your questions on the go with EE Mobile. Visit Experts Exchange from your mobile device and never be out of touch again.

Question
[x]
Attachment Details

Net-SNMP perl module - Dynamic library error

Asked by poijoi in Unix Networking, Perl Programming Language

Hi,

I created a Perl script and tested it on a couple of servers running Net-SNMP 5.3.1-19, but now I'm trying to run it on a different server and I'm getting the following error:

    Can't load '/usr/lib/perl5/site_perl/5.8.8/i386-linux-thread-multi/auto/NetSNMP/default_store/default_store.so' for module NetSNMP::default_store: libnetsnmp.so.15: cannot open shared object file: No such file or directory at /usr/lib/perl5/5.8.8/i386-linux-thread-multi/DynaLoader.pm line 230. at /usr/lib/perl5/site_perl/5.8.8/i386-linux-thread-multi/SNMP.pm line 16 Compilation failed in require at /usr/lib/perl5/site_perl/5.8.8/i386-linux-thread-multi/SNMP.pm line 16. BEGIN failed--compilation aborted at /usr/lib/perl5/site_perl/5.8.8/i386-linux-thread-multi/SNMP.pm line 16. Compilation failed in require at /shaw/neteye/perl_scripts/cmtsmonitord.pl line 9. BEGIN failed--compilation aborted at /shaw/neteye/perl_scripts/cmtsmonitord.pl line 9.

Why is the loader complaininig about the libnetsnmp.so.15? I have libnetsnmp.so.10 installed in all of the other servers and it works just fine. The symlinks are pointing to the same version (10), not 15. Isn't that required for a later version of Net::SNMP (5.4.2.1)?

    [user@wb lib]$ sudo /sbin/ldconfig |grep snmp
    /sbin/ldconfig: /usr/lib/libgd.so.2 is not a symbolic link

    [user@wb lib]$ sudo /sbin/ldconfig -p |grep snmp
    libsnmp.so.10 (libc6) => /usr/lib/libsnmp.so.10
    libnetsnmptrapd.so.10 (libc6) => /usr/lib/libnetsnmptrapd.so.10
    libnetsnmpmibs.so.10 (libc6) => /usr/lib/libnetsnmpmibs.so.10
    libnetsnmphelpers.so.10 (libc6) => /usr/lib/libnetsnmphelpers.so.10
    libnetsnmpagent.so.10 (libc6) => /usr/lib/libnetsnmpagent.so.10
    libnetsnmp.so.10 (libc6) => /usr/lib/libnetsnmp.so.10

Why is it trying to use a more recent version of the dynamic library in this server when all the snmp packages are the same?

Thanks, PJ
1:
2:
3:
4:
/usr/lib/perl5/site_perl/5.8.8/i386-linux-thread-multi/auto/NetSNMP/agent/default_store/default_store.so
 /usr/lib/perl5/site_perl/5.8.8/i386-linux-thread-multi/auto/NetSNMP/default_store/default_store.so 
/usr/lib/perl5/vendor_perl/5.8.8/i386-linux-thread-multi/auto/NetSNMP/agent/default_store/default_store.so 
/usr/lib/perl5/vendor_perl/5.8.8/i386-linux-thread-multi/auto/NetSNMP/default_store/default_store.so
 
Related Solutions
 
Loading Advertisement...
 
[+][-]06/22/09 05:56 PM, ID: 24687961Author Comment

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 30-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]06/23/09 06:37 AM, ID: 24691684Expert Comment

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]06/23/09 01:28 PM, ID: 24695883Author Comment

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 30-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]06/23/09 01:31 PM, ID: 24695920Expert Comment

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]06/23/09 06:12 PM, ID: 24697575Author Comment

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 30-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]06/24/09 12:58 PM, ID: 24705115Expert Comment

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
 
Loading Advertisement...
20091111-EE-VQP-92 - Hierarchy / EE_QW_3_20080625