PHP编译SNMP错误

新的监控server安装cacti,需要php编译snmp,安装net-smp包之后仍然编译报错,如下:

checking OpenSSL dir for SNMP… no
checking for net-snmp-config… /usr/bin/net-snmp-config
checking for snmp_parse_oid in -lnetsnmp… no
checking for init_snmp in -lnetsnmp… no
configure: error: SNMP sanity check failed. Please check config.log for more information.

需要安装:
elfutils-devel-0.97-5.i386.rpm

然后一切正常

发表回复