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