安裝centos6.3x86上的nagios

今天在安裝nagios時候總是遇到c編譯器不通過得問題:

查看rpm包都已經安裝

rpm -q gcc glibc glibc-common gd gd-devel xinetd openssl-devel

如果系統中沒有這些套件,使用yum 安裝

# yum install -y gcc glibc glibc-common gd gd-devel xinetd openssl-devel


[root@localhost nagios]# ./configure --prefix=/opt/local/nagios/
checking for a BSD-compatible install... /usr/bin/install -c
checking build system type... x86_64-unknown-linux-gnu
checking host system type... x86_64-unknown-linux-gnu
checking for gcc... gcc
checking for C compiler default output file name... configure: error: C compiler cannot create executables
See `config.log' for more details.

後來查看時缺了glibc包,這時候我安裝了glibc*時候解決了

yum install glibc-*


具體安裝可以查看如下鏈接




轉自:http://www.cnblogs.com/mchina/archive/2013/02/20/2883404.html

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章