centos编译问题,./configure

前端之家收集整理的这篇文章主要介绍了centos编译问题,./configure前端之家小编觉得挺不错的,现在分享给大家,也给大家做个参考。

我的问题是这样的:在安装nagios,编译nrpe和nagios-plugin时都出现下面的错误

@H_301_5@

[root@localhost nagios-plugins-2.1.2]# ./configure@H_301_5@checking for a BSD-compatible install... /usr/bin/install -c@H_301_5@checking whether build environment is sane... yes@H_301_5@checking for a thread-safe mkdir -p... /bin/mkdir -p@H_301_5@checking for gawk... gawk@H_301_5@checking whether make sets $(MAKE)... yes@H_301_5@checking whether to disable maintainer-specific portions of Makefiles... yes@H_301_5@checking build system type... x86_64-unknown-linux-gnu@H_301_5@checking host system type... x86_64-unknown-linux-gnu@H_301_5@checking for gcc... gcc@H_301_5@checking for C compiler default output file name...@H_301_5@configure: error: in/root/nagios-plugins-2.1.2':@H_301_5@configure: error: C compiler cannot create executables@H_301_5@Seeconfig.log' for more details.

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

@H_301_5@

日志最后提示 configure: exit 77

然后查看很多资料

有的说缺失这个包libc6-dev ,但是yum根本就安装不了

gcc我也卸载了,然后用yum重装了还是不行,,然后我又下载了gcc安装包手动安装,但是到编译的部分还是提示类似上面的错误

然后我就搜索yum 安装libc6-dev,终于找到了答案@H_301_5@

https://superuser.com/questions/491504/how-do-i-install-package-libc6-dev-i386-on-fedora@H_301_5@

yum installglibc-devel 问题解决了!

猜你在找的CentOS相关文章