我正在尝试在我的Debian服务器上安装php 5.3.5并在我执行
之后./ configure -with-mysql = / usr -with-mysqli = / usr / bin / mysql_config -with-tidy = / usr -with-curl = / usr / bin -with-curlwrappers -with-openssl-dir = / usr -with-zlib-dir = / usr -enable-mbstring -with-xpm-dir = / usr -with-pdo-mysql = / usr -with-xsl = / usr -with-ldap -with-xmlrpc - with-iconv-dir = / usr -with-snmp = / usr -enable-exif -enable-calendar -with-bz2 = / usr -with-mcrypt = / usr -with-gd -with-jpeg-dir = / usr -with-png-dir = / usr -with-zlib-dir = / usr -with-freetype-dir = / usr -enable-mbstring -enable-zip -with-pear -prefix = / usr / php -with-imap -with-kerberos -with-imap-ssl -with-imagick -with-readline -with-libedit
发生此错误
检查是否启用UCD SNMP hack ... no 检查-lnetsnmp中的snmp_parse_oid ...没有 在-lnetsnmp中检查init_snmp ...没有 configure:错误:SNMP健全性检查失败。请查看config.log以获取更多信息。
你知道如何解决这个问题吗? (我已经安装了SNMP。)
答案 0 :(得分:4)
你没有说你是如何安装snmp的,但是我遇到了同样的错误,我跑了
apt-get install libsnmp-dev
它为我修复了这个错误。 (虽然我是ubuntu,而不是debian)
答案 1 :(得分:1)
要在centos上安装snmp,请使用
yum install net-snmp-devel