今天在安裝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