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!