brew in not working for me OSX 10.7



我已经安装了xcode 4.3及其运行,但当我进行brew时,请安装wget。我得到

===>正在下载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--disableconfigure:为GNU Wget 1.13.4配置正在检查BSD兼容的安装/usr/bin/install-c正在检查生成环境是否正常。。。对正在检查线程安全的mkdir-p。。。构建aux/install sh-c-d正在检查gawk。。。不正在检查mawk。。。不正在检查nawk。。。不正在检查awk。。。awk检查make是否设置$(make)。。。对正在检查生成系统类型。。。x86_64-apple-darwin11.3.0正在检查主机系统类型。。。x86_64-apple-darwin11.3.0正在检查gcc/应用程序/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang正在检查C编译器是否工作。。。不configure:error:在"/private/tmp/homerew-get-1.13.4-PMov/wget-1.13.4"中:configure:error:C编译器无法创建可执行文件有关详细信息,请参阅"config.log"===>退出状态:77http://github.com/mxcl/homebrew/blob/master/Library/Formula/wget.rb#L24===>环境HOMEBREW_VERSION:0.8.1头部:(无)HOMEBREW_PREFIX:/usr/localHOMEBREW_CELLAR:/usr/local/CELLAR硬件:四核64位sandybridgeOS X:10.7.3内核体系结构:x86_64X代码:3.2.2GCC-4.0:不适用GCC-4.2:不适用LLVM:内部版本2336Clang:不适用MacPorts还是Fink?虚假的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===>生成标志抄送:/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clangCXX:/Applications/Xcode.app/Contents/Developer/Toolchain/XcodeDefault.xctoolchain/usr/bin/clang++=>/Applications/Xcode/app/Contents/Developer/Toolchain/XcodeDefault.xctool chain/usr/bin/clangLD:/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clangCFLAGS:-Os-w-pipe-march=本机-Qunused参数CXXFLAGS:-Os-w-pipe-march=native-Qunused参数标记:-j4错误:执行失败:/configure--disable debug--prefix=/usr/local/Cellar/wget/1.13.4--sysconfdir=/usr/local/etc--with ssl=openssl--disable iri如果"brew doctor"无法帮助诊断问题,请报告错误: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 select--install对我不起作用。

访问https://developer.apple.com/download/all/?q=command%20line%20tools并下载安装程序。

之后,只需不到30分钟。

最新更新