电脑疯子技术论坛|电脑极客社区

微信扫一扫 分享朋友圈

已有 2635 人浏览分享

解决centos编译./configure问题

[复制链接]
2635 0
本帖最后由 zhaorong 于 2017-8-11 15:09 编辑

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


  1. [root@localhost nagios-plugins-2.1.2]# ./configure
  2. checking for a BSD-compatible install... /usr/bin/install -c
  3. checking whether build environment is sane... yes
  4. checking for a thread-safe mkdir -p... /bin/mkdir -p
  5. checking for gawk... gawk
  6. checking whether make sets $(MAKE)... yes
  7. checking whether to disable maintainer-specific portions of Makefiles... yes
  8. checking build system type... x86_64-unknown-linux-gnu
  9. checking host system type... x86_64-unknown-linux-gnu
  10. checking for gcc... gcc
  11. checking for C compiler default output file name...
  12. configure: error: in /root/nagios-plugins-2.1.2':
  13. configure: error: C compiler cannot create executables
  14. Seeconfig.log' for more details.
复制代码



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


日志最后提示: configure: exit 77

然后查看很多资料
有的说缺失这个包libc6-dev ,但是yum根本就安装不了
gcc我也卸载了,然后用yum重装了还是不行,,然后我又下载了gcc安装包手动安装,但是到编译的部分还是提示类似上面的错误。

然后我就搜索yum 安装 libc6-dev,终于找到了答案
https://superuser.com/questions/ ... -dev-i386-on-fedora
yum install glibc-devel 问题解决了!



您需要登录后才可以回帖 登录 | 注册

本版积分规则

1

关注

0

粉丝

9021

主题
精彩推荐
热门资讯
网友晒图
图文推荐

Powered by Pcgho! X3.4

© 2008-2022 Pcgho Inc.