已更新至OSX 10.9,现在使用自制程序获取ruby错误

时间:2013-10-28 13:14:07

标签: ruby macos homebrew

已更新至Mavericks并更新了Xcode。现在我在尝试使用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>'

任何想法?

1 个答案:

答案 0 :(得分:-1)

在Mavericks中,Xcode不再提供命令行工具。

您可以从运行&#34; xcode-select --install&#34;

的命令行安装它们