当我尝试在我的 linux 服务器上安装 libxml2 时,它给了我以下错误。我的机器上的 Gcc 已安装并完全更新,但它仍然给我错误,您的 C 编译器无法正常工作,任何人都可以给我建议如何克服它。
[root@localhost libxml2-2.8.0]# ./configure
checking build system type... x86_64-unknown-linux-gnu
checking host system type... x86_64-unknown-linux-gnu
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 for gcc... gcc
checking whether the C compiler works... no
configure: error: in `/root/tmpdir/libxml2-2.8.0':
configure: error: C compiler cannot create executables
See `config.log' for more details