解決centos編譯./configure相關問題

來源:互聯網
上載者:User

解決centos編譯./configure相關問題

我的問題是這樣的:在安裝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 installglibc-devel 問題解決了!

相關文章

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.