Solve Problems Related to centos compilation./configure

Source: Internet
Author: User

Solve Problems Related to centos compilation./configure

My problem is: the following error occurs when you install nagios, compile nrpe, and 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.

Log prompt: configure: exit 77

View a lot of information

Some say this package libc6-dev is missing, but yum cannot be installed at all

I also uninstalled gcc, and then re-installed it with yum. I downloaded the gcc installation package and installed it manually. However, the above errors are still prompted during compilation.

Then I searched for the yum installation libc6-dev and finally found the answer

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

Yum installglibc-devel problem solved!

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

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.