When bind9.9.2 is installed on the server today, GCC and GCC-C ++ have already been installed, but the./configure still reports an error:
Checking build system type... x86_64-unknown-linux-gnu
Checking host system type... x86_64-unknown-linux-gnu
Checking whether make sets $ (make)... yes
Checking for GCC... gcc
Checking whether the C compiler works... no
Configure: Error: In '/tmp/bind-100 ':
Configure: Error: C compiler cannot create executables
See 'config. log' For more details
Solution:
In the Linux Command Line, enter the following two lines to clear the cflags and libs values:
Export libs =
Export cflags =
Then, when you run./configue and so on, you can pass it normally.
This article from the "Linux open source-continuous summary..." blog, please be sure to keep this source http://fantefei.blog.51cto.com/2229719/1070919
The Configure: Error: C compiler cannot create executables error is fixed during configure compilation.