gpt4 book ai didi

linux - 编译zabbix-server时未找到z库

转载 作者:太空宇宙 更新时间:2023-11-04 04:22:59 25 4
gpt4 key购买 nike

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

最佳答案

这是实际的错误:

/usr/bin/ld: cannot find -lm

但它之前发现的,它指向其他东西。检查您的 ulimit 以确保最大打开文件数不低。

关于linux - 编译zabbix-server时未找到z库,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/11574878/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com