关于./configure 出错的问题解决

在安装nagios及其组件时遇到编译错误,通过检查配置日志发现是C编译器无法创建可执行文件。尝试过升级、重装gcc,甚至手动安装libc6-dev未果。最终通过yum安装glibc-devel解决了问题。

我的问题是这样的:在安装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

See
config.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 问题解决了!

评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值