Xcode brew in不适用于我OSX 10.7

Xcode brew in不适用于我OSX 10.7,xcode,macos,homebrew,Xcode,Macos,Homebrew,我已经安装了xcode 4.3及其运行版本,但当我安装brew时,请安装wget。我明白了 ==> Downloading http://ftpmirror.gnu.org/wget/wget-1.13.4.tar.bz2 ######################################################################## 100.0% ==> ./configure --disable-debug --prefix=/usr/loca

我已经安装了xcode 4.3及其运行版本,但当我安装brew时,请安装wget。我明白了

==> Downloading http://ftpmirror.gnu.org/wget/wget-1.13.4.tar.bz2 ######################################################################## 100.0% ==> ./configure --disable-debug --prefix=/usr/local/Cellar/wget/1.13.4 --sysconfdir=/usr/local/etc --with-ssl=openssl --disable configure: configuring for GNU Wget 1.13.4 checking for a BSD-compatible install... /usr/bin/install -c checking whether build environment is sane... yes checking for a thread-safe mkdir -p... build-aux/install-sh -c -d checking for gawk... no checking for mawk... no checking for nawk... no checking for awk... awk checking whether make sets $(MAKE)... yes checking build system type... x86_64-apple-darwin11.3.0 checking host system type... x86_64-apple-darwin11.3.0 checking for gcc... /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang checking whether the C compiler works... no configure: error: in `/private/tmp/homebrew-wget-1.13.4-PMov/wget-1.13.4': configure: error: C compiler cannot create executables See `config.log' for more details ==> Exit Status: 77 http://github.com/mxcl/homebrew/blob/master/Library/Formula/wget.rb#L24 ==> Environment HOMEBREW_VERSION: 0.8.1 HEAD: (none) HOMEBREW_PREFIX: /usr/local HOMEBREW_CELLAR: /usr/local/Cellar Hardware: quad-core 64-bit sandybridge OS X: 10.7.3 Kernel Architecture: x86_64 Xcode: 3.2.2 GCC-4.0: N/A GCC-4.2: N/A LLVM: build 2336 Clang: N/A MacPorts or Fink? false X11: /usr/X11 System Ruby: 1.8.7-249 /usr/bin/ruby => /Sy /usr/bin/ruby => /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/bin/ruby Which Perl: /usr/bin/perl Which Python: /usr/bin/python Which Ruby: /usr/bin/ruby => /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/bin/ruby ==> Build Flags CC: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang CXX: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang++ => /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang LD: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang CFLAGS: -Os -w -pipe -march=native -Qunused-arguments CXXFLAGS: -Os -w -pipe -march=native -Qunused-arguments MAKEFLAGS: -j4 Error: Failed executing: ./configure --disable-debug --prefix=/usr/local/Cellar/wget/1.13.4 --sysconfdir=/usr/local/etc --with-ssl=openssl --disable-iri If `brew doctor' does not help diagnose the issue, please report the bug: https://github.com/mxcl/homebrew/wiki/checklist-before-filing-a-new-issue We saved the configure log, please gist it if you report the issue: ~/Library/Logs/Homebrew/config.log ==>下载http://ftpmirror.gnu.org/wget/wget-1.13.4.tar.bz2 ######################################################################## 100.0% ==>。/configure--disable debug--prefix=/usr/local/ceral/wget/1.13.4--sysconfdir=/usr/local/etc--with ssl=openssl--disable 配置:为GNU Wget 1.13.4进行配置 正在检查BSD兼容的安装/usr/bin/install-c 正在检查生成环境是否正常。。。对 正在检查线程安全的mkdir-p。。。生成辅助/安装sh-c-d 正在检查是否有呆滞。。。不 正在检查mawk。。。不 正在检查nawk。。。不 正在检查awk。。。awk 正在检查make是否设置$(make)。。。对 正在检查生成系统类型。。。x86_64-apple-darwin11.3.0 正在检查主机系统类型。。。x86_64-apple-darwin11.3.0 正在检查gcc/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang 正在检查C编译器是否工作。。。不 配置:错误:在“/private/tmp/homebrew-wget-1.13.4-PMov/wget-1.13.4”中: 配置:错误:C编译器无法创建可执行文件 有关详细信息,请参阅“config.log” ==>退出状态:77 http://github.com/mxcl/homebrew/blob/master/Library/Formula/wget.rb#L24 ==>环境 自制_版本:0.8.1 负责人:(无) 自制\u前缀:/usr/local 自制酒窖:/usr/本地/酒窖 硬件:四核64位sandybridge OSX:10.7.3 内核架构:x86_64 Xcode:3.2.2 GCC-4.0:不适用 GCC-4.2:不适用 LLVM:构建2336 叮当声:不适用 麦克波特还是芬克?假的 X11:/usr/X11 系统Ruby:1.8.7-249 /usr/bin/ruby=>/Sy /usr/bin/ruby=>/System/Library/Frameworks/ruby.framework/Versions/1.8/usr/bin/ruby 哪个Perl:/usr/bin/Perl 哪个Python:/usr/bin/Python 哪个Ruby:/usr/bin/Ruby=>/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/bin/Ruby ==>生成标志 CC:/Applications/Xcode.app/Contents/Developer/toolschains/xcodefault.xctoolschain/usr/bin/clang CXX:/Applications/Xcode.app/Contents/Developer/toolschains/XcodeDefault.xctoolschain/usr/bin/clang++=>/Applications/Xcode.app/Contents/Developer/toolschains/XcodeDefault.xctoolschain/usr/bin/clang LD:/Applications/Xcode.app/Contents/Developer/toolschains/XcodeDefault.xctoolschain/usr/bin/clang CFLAGS:-Os-w-pipe-march=native-qused参数 CXXFLAGS:-Os-w-pipe-MARK=本机-QUUSED参数 MAKEFLAGS:-j4 错误:执行失败:./configure--disable debug--prefix=/usr/local/ceral/wget/1.13.4--sysconfdir=/usr/local/etc--with ssl=openssl--disable iri 如果“brew医生”无法帮助诊断问题,请报告错误: https://github.com/mxcl/homebrew/wiki/checklist-before-filing-a-new-issue 我们保存了配置日志,如果您报告此问题,请提供此日志: ~/Library/Logs/Homebrew/config.log
请帮我把这个修好。我已经安装了新的操作系统和xcode 4.3

您需要安装CLI工具。在Xcode中打开首选项,转到下载并安装“命令行工具”。

您需要添加命令行开发人员工具包,然后可以通过终端轻松完成:

xcode-select --install

我很惊讶输出中列出了“Xcode:3.2.2”,并且没有安装任何Clang/GCC。您是如何安装Xcode的?我必须显式安装GCC编译器才能使brew正常工作。我安装了OSX、GCC、brew,现在一切正常