我在 CentOS 6.2 上编译 zabbix-server 时遇到问题。命令行是:
./configure --enable-server --with-mysql --with-net-snmp --with-libcurl
--with-jabber --with-ssh2 --with-openipmi --with-ldap --enable-static
但是出现错误:
checking for main in -lz... no
configure: error: Not found z library;
完整的配置输出在这里: http: //pastebin.ru/WmDP7UL0
我已经尝试过:
yum install zlib zlib-devel zlib-static zlibrary zlibrary-devel
但它没有成功。
感谢您的关注。
UPD。此处发布的配置日志:http: //pastebin.ru/WNtQu9eR并显示此错误:
configure:7366: checking for main in -lz
configure:7385: gcc -o conftest -g -O2 -rdynamic -static conftest.c -lz -lm -lrt -lresolv >&5
/usr/bin/ld: cannot find -lm
collect2: ld returned 1 exit status