我的問題是這樣的:在安裝 nagios,編譯 nrpe 和 nagios-plugin 時都出現下面的錯誤
[root@localhost nagios-plugins-2.1.2]# ./configure
checking for a BSD-compatible install… /usr/bin/install -c
checking whether build environment is sane… yes
checking for a thread-safe mkdir -p… /bin/mkdir -p
checking for gawk… gawk
checking whether make sets $(MAKE)… yes
checking whether to disable maintainer-specific portions of Makefiles… yes
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: in /root/nagios-plugins-2.1.2′:
configure: error: C compiler cannot create executables
Seeconfig.log’ for more details.
[root@localhost nrpe-2.12]# ./configure
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.
日誌最後提示: configure: exit 77
然後檢視很多資料
有的説缺失這個包 libc6-dev ,但是 yum 根本就安裝不了
gcc 我也解除安裝了,然後用 yum 重灌了還是不行,,然後我又下載了 gcc 安裝包手動安裝,但是到編譯的部分還是提示類似上面的錯誤。
然後我就搜尋 yum 安裝 libc6-dev,終於找到了答案
https://superuser.com/questions/491504/how-do-i-install-package-libc6-dev-i386-on-fedora
yum install glibc-devel 問題解決了!