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

 找回密码
 注册

QQ登录

只需一步,快速开始

[编程和数据库] 解决centos编译./configure问题

[复制链接]
zhaorong 发表于 2017-8-11 15:04:02 | 显示全部楼层 |阅读模式
本帖最后由 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 问题解决了!


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

本版积分规则

手机版|小黑屋|VIP|电脑疯子技术论坛 ( Computer madman team )

GMT+8, 2025-2-2 20:41

Powered by Discuz! X3.4

Copyright © 2001-2023, Tencent Cloud.

快速回复 返回顶部 返回列表