安装zabbix报错
Posted
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了安装zabbix报错相关的知识,希望对你有一定的参考价值。
安装之前先通过yum的方式解决依赖:shell> yum install unixODBC-devel mysql-devel net-snmp-devel libxml2-devel libcurl-devel libevent-devel
shell> ./configure --prefix=/usr/local/zabbix/ --enable-server --with-mysql --with-net-snmp --with-libcurl --with-libxml2 --with-unixodbc
configure: error: Unable to use libevent (libevent check failed)
解决方法:
shell> wget http://monkey.org/~provos/libevent-1.4.14b-stable.tar.gz
shell> tar xf libevent-1.4.14b-stable.tar.gz
shell>cd libevent-1.4.14b-stable
shell> ./configure --prefix=/opt/libevent
shell> make && make install
shell> ./configure --prefix=/usr/local/zabbix/ --enable-server --enable-agent --enable-java --with-mysql --with-net-snmp --with-libcurl --with-libxml2 --with-unixodbc --with-libevent=/opt/libevent/
configure: error: Unable to use libpcre (libpcre check failed
```)
解决:libpcre
`shell>yum -y install pcre*`
缺少依赖解决完毕
以上是关于安装zabbix报错的主要内容,如果未能解决你的问题,请参考以下文章