itln_subagent安装问题解决

itln_subagent: error while loading shared libraries: libnetsnmp.so.15: cannot open shared object file: No such file or directory
[root@dx bin]# ldd itln_subagent
        linux-gate.so.1 =>  (0x00289000)
        libnetsnmp.so.15 => not found
        libnetsnmpagent.so.15 => not found
        libnetsnmphelpers.so.15 => not found
        libnetsnmpmibs.so.15 => not found
        libz.so.1 => /usr/lib/libz.so.1 (0x00a4c000)
        libc.so.6 => /lib/libc.so.6 (0x008f4000)
        /lib/ld-linux.so.2 (0x008d6000)

解决方法

因为snmp链接库都在/usr/local/lib目录下。
在 /etc/ld.so.conf.d 目录下创建snmp.conf文件,“/usr/local/lib“
执行ldconfig

你可能感兴趣的:(itln_subagent安装问题解决)