2012-07-20 67 views
0

我在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 
+0

改为发布config.log。 – 2012-07-20 07:40:03

+0

配置日志在这里:http://pastebin.ru/WNtQu9eR – user1540017 2012-07-20 07:47:16

回答

0

下面是实际的错误:

/usr/bin/ld: cannot find -lm 

以前发现的,它指向别的东西。检查你的ulimits,确保你没有低的最大打开文件数量。

+0

感谢您的回答。 'yum install glibc-static'帮助了我。但是现在我不知道该如何处理这个错误:'在-lssl中检查main ...没有配置:错误:未找到ssl库'。我已经安装了openssl和openssl-devel。它没有帮助。 – user1540017 2012-07-20 08:43:24