2012-07-20 65 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