无法配置AGENT ++配置:错误:找不到合适的libsnmp ++库

时间:2019-03-31 05:28:33

标签: c++ snmp configure

我按照说明下载了AGENT ++的代码:

autoreconf -i
./configure
make

但是当我运行./configure

我明白了

checking for ld used by gcc... /usr/bin/ld
checking if the linker (/usr/bin/ld) is GNU ld... yes
checking for shared library run path origin... done
checking how to run the C++ preprocessor... g++ -E
checking if libsnmp++ is wanted... (cached) yes
checking if libsnmp++ wants a prefix... (cached) no
checking for snmp... no
checking if libsnmp++ is in /usr/local... no
checking if libsnmp++ is in /usr... no
configure: error: Cannot find suitable libsnmp++ library

我尝试指定: --with-libsnmp-prefix [= DIR] 到/ usr / lib / x86_64-linux-gnu /所在的位置:

~/Downloads/agent++-4.1.2$ find /usr/ -name libsnmp*
/usr/share/lintian/overrides/libsnmp30
/usr/share/doc/libsnmp-base
/usr/share/doc/libsnmp-dev
/usr/share/doc/libsnmp30
/usr/lib/libsnmp++.a
/usr/lib/libsnmp++.so
/usr/lib/x86_64-linux-gnu/libsnmp.a
/usr/lib/x86_64-linux-gnu/libsnmp.so
/usr/lib/x86_64-linux-gnu/libsnmp.so.30.0.3
/usr/lib/x86_64-linux-gnu/libsnmp.so.30

1 个答案:

答案 0 :(得分:0)

原来是snmp ++软件包 https://www.agentpp.com/api/cpp/snmp_pp.html

在配置时,首先需要编译,安装或从agent ++指向