我在CentOS 6.2上编译zabbix-server时出现问题。 命令行是:编译zabbix-server时未找到z库
./configure --enable-server --with-mysql --with-net-snmp --with-libcurl
--with-jabber --with-ssh2 --with-openipmi --with-ldap --enable-static
但错误occures:
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
改为发布config.log。 – 2012-07-20 07:40:03
配置日志在这里:http://pastebin.ru/WNtQu9eR – user1540017 2012-07-20 07:47:16