configure: error: C compiler cannot create executables

在一台10.7的系统上,装了Xcode 4.3.2。在编译某开源库时出现下面错误

./configure
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for gawk... no
checking for mawk... no
checking for nawk... no
checking for awk... awk
checking whether make sets $(MAKE)... yes
checking whether to enable maintainer-specific portions of Makefiles... no
checking build system type... i686-apple-darwin11.3.0
checking host system type... i686-apple-darwin11.3.0
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.

在Xcode->Downloads->Components中,安装Command Line Tools后即解决此问题。

是以为记。

你可能感兴趣的:(c,xcode,command,System,Build,compiler)