更新到OSX 10.9,现在使用自制软件时出现ruby错误 [英] Updated to OSX 10.9, now getting ruby error using homebrew

查看:68
本文介绍了更新到OSX 10.9,现在使用自制软件时出现ruby错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

已更新为Mavericks,并更新了Xcode.现在尝试使用brew时出现此错误.

Updated to Mavericks and updated Xcode. Now I am getting this error when trying to use brew.

  $ brew cleanup
/System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/rubygems/core_ext/kernel_require.rb:45:in `require': /usr/local/Library/Homebrew/extend/pathname.rb:259: invalid multibyte escape: /^\037\213/ (SyntaxError)
invalid multibyte escape: /^\037\235/
invalid multibyte escape: /^\xFD7zXZ\x00/
        from /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/rubygems/core_ext/kernel_require.rb:45:in `require'
        from /usr/local/Library/Homebrew/global.rb:1:in `<top (required)>'
        from /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/rubygems/core_ext/kernel_require.rb:45:in `require'
        from /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/rubygems/core_ext/kernel_require.rb:45:in `require'
        from /usr/local/bin/brew:10:in `<main>'

有什么想法吗?

推荐答案

在Mavericks中,命令行工具不再可以通过Xcode使用.

In Mavericks, Command line tools are not available anymore through Xcode.

您可以从运行"xcode-select --install"的命令行中安装它们

You can install them from the command line running "xcode-select --install"

这篇关于更新到OSX 10.9,现在使用自制软件时出现ruby错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆