我编译了很多次都是失败,搜百度谷歌很多方法试了也没用,一直是编译到libzbxdb_a-db.o报错,最后发现在 添加依赖库“mysql”的路径的问题。
将mysql配置改为**‘--with-mysql=/usr/local/mysql/bin/mysql_config’
**
完整如下:
./configure --prefix=/usr/local/zabbix-2.2.2/
--enable-server --enable-agent --with-mysql=/usr/local/mysql/bin/mysql_config --with-net-snmp --with-libcurl --with-libxml2
make && make install
ok