RE: Installing net-snmp-5.7.3 and mib2c on CentOS

"Kalenscher, Dan" <[email protected]>
Newsgroups gmane.network.net-snmp.user
Message-ID <[email protected]>
Got past that issue by updating my ldconfig and adding /usr/local/lib, however now I am to my next issue:

Can't load '../blib/arch/auto/NetSNMP/agent/agent.so' for module NetSNMP::agent: ../blib/arch/auto/NetSNMP/agent/agent.so: undefined symbol: init_snmp at /usr/lib64/perl5/DynaLoader.pm line 190.

This one doesn’t seem to be a missing file with the ldd and I cannot find any references to init_snmp being undefined for others online.

From: Kalenscher, Dan (US Person)
Sent: Wednesday, April 11, 2018 4:35 PM
To: 'Bill Fenner' <[email protected]>
Cc: [email protected]
Subject: RE: Installing net-snmp-5.7.3 and mib2c on CentOS

Might have narrowed down the issue.  Seems like my make install failed for the perl module, running the perl install manually and did a make test got the output:

Can't load '../blib/arch/auto/NetSNMP/default_store/default_store.so' for module NetSNMP::default_store: libnetsnmp.so.30: cannot open shared object file: No such file or directory at /usr/lib64/perl5/DynaLoader.pm line 190.

However when I search for that file on my system I can find:

/usr/local/lib64/perl5/auto/NetSNMP/agent/default_store/default_store.so
/usr/local/lib64/perl5/auto/NetSNMP/default_store/default_store.so
/net-snmp-5.7.3/perl/blib/arch/auto/NetSNMP/default_store/default_store.so
/net-snmp-5.7.3/perl/blib/arch/auto/NetSNMP/agent/default_store/default_store.so

I see a few others have had this issue so I am trying to see if I can figure oiut how they fixed it.

-Dan

From: Bill Fenner [mailto:[email protected]]
Sent: Wednesday, April 11, 2018 4:25 PM
To: Kalenscher, Dan (US Person) <[email protected]<mailto:[email protected]>>
Cc: [email protected]<mailto:[email protected]>
Subject: Re: Installing net-snmp-5.7.3 and mib2c on CentOS

On Wed, Apr 11, 2018 at 3:07 PM, Kalenscher, Dan <[email protected]<mailto:[email protected]>> wrote:
I am working on a server with CentOS 7 and I am building net-snmp agents with custom MIBs and therefore need mib2c.  The yum repos with my CentOS build only have:

yum list net-snmp
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
* base: mirror.vtti.vt.edu<http://mirror.vtti.vt.edu>
* centosplus: repos.forethought.net<http://repos.forethought.net>
* extras: repos-lax.psychz.net<http://repos-lax.psychz.net>
* updates: mirror.grid.uchicago.edu<http://mirror.grid.uchicago.edu>
Available Packages
net-snmp.x86_64                                                                                  1:5.7.2-28.el7_4.1                                                                                  updates

Try "yum search net-snmp" and you may find:


net-snmp-perl.x86_64 : The perl NET-SNMP module and the mib2c tool

I installed this package in a centos7 container and can run mib2c.

  Bill

------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot

_______________________________________________
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.