NET-SNMP 5.7.3 Sub-agent libnetsnmp.so.30 not found solution

Source: Internet
Author: User
Tags snmp

After executing the sub-agent developed with net-snmp-5.7.3, the error "./mysnmp:error while loading shared libraries:libnetsnmpmibs.so.30:cannot open shared Object File:no such file or directory "

The reason is that the LD_LIBRARY_PATH environment variable is not defined and executes the following statement:

<strong><span style= "Font-size:24px;color: #ff0000;" >export ld_library_path=/usr/local/lib</span></strong>

Example of the resolution process:

[email protected]:/usr/local/lib# ldd/home/kpiss/net-snmp-5.7.3/agent/mibgroup/chanctsnmp linux-vdso.so.1 =&  Gt (0x00007fff577e2000) libnetsnmpmibs.so.30 = not found libnetsnmpagent.so.30 = not found Libne tsnmp.so.30 = not Found libc.so.6 =/lib/x86_64-linux-gnu/libc.so.6 (0x00007fc5207a7000)/lib64/ld-l                 Inux-x86-64.so.2 (0x00007fc520b70000) [email protected]:/usr/local/lib# export Ld_library_path=/usr/local/lib [email protected]:/usr/local/lib# Ldd/home/kpiss/net-snmp-5.7.3/agent/mibgroup/chanctsnmp LINUX-VD So.so.1 = (0x00007fffef1fe000) libnetsnmpmibs.so.30 =/usr/local/lib/libnetsnmpmibs.so.30 (0x00007fc14b29c libnetsnmpagent.so.30 =/usr/local/lib/libnetsnmpagent.so.30 (0x00007fc14b03a000) libnetsnmp.so.30 =/usr/local/lib/libnetsnmp.so.30 (0x00007fc14ad50000) libc.so.6 =/lib/x86_64-linux-gnu/libc.so.6 (0x00007        fc14a98a000)libdl.so.2 =/lib/x86_64-linux-gnu/libdl.so.2 (0x00007fc14a786000) libpthread.so.0 =/lib/x86_64-linux-gnu/        libpthread.so.0 (0x00007fc14a568000) librt.so.1 =/lib/x86_64-linux-gnu/librt.so.1 (0x00007fc14a360000) /lib64/ld-linux-x86-64.so.2 (0x00007fc14b70a000)

Reference:

Https://www.mail-archive.com/net-snmp-users%40lists.sourceforge.net/msg16168.html

NET-SNMP 5.7.3 Sub-agent libnetsnmp.so.30 not found solution

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.