枫叶飞翔 发表于 2019-1-17 12:42:41

安装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*`
缺少依赖解决完毕


页: [1]
查看完整版本: 安装zabbix报错