安装net-snmp-python cd ./python
若出现上述错误,安装 python-devel libevent-devel 即可。
下载 net-snmp
。/configure
make
make install
python setup.py build
python setup.py test
这里会提示错误
ln -s /usr/local/lib/libnetsnmp.so.30 /usr/lib/libnetsnmp.so.30
python setup.py install
1.error: command 'gcc' failed with exit status 1`