在 Debian 服务器上安装 php 5.3.5 期间,SNMP 健全性检查失败
我正在尝试在 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 时 ... 否 检查 -lnetsnmp 中的 snmp_parse_oid... 否 检查 -lnetsnmp 中的 init_snmp... 否 配置:错误:SNMP 健全性检查失败。请检查 config.log 以获取更多信息。
你知道如何解决这个问题吗? (我已经安装了SNMP。)
I am trying to install php 5.3.5 on my Debian server and after I performed
./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
This error occured
checking whether to enable UCD SNMP hack... no
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.
Have you any idea how to fix that? (I have installed SNMP.)
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
你没有说你是如何安装 snmp 的,但我遇到了同样的错误,我运行了它
,它为我修复了该错误。
(虽然我在ubuntu上,而不是debian上)
You didn't say how you installed snmp, but I had the same error, and I ran
And it fixed that error for me.
(although I'm on ubuntu, not debian)
要在 centos 上安装 snmp,请使用
For installing snmp on centos, use