Homebrew不会跑,错误"糟糕的翻译"

时间:2014-09-09 18:06:07

标签: ruby macos rvm homebrew

前提条件:我从Mac-PC中删除了所有Ruby版本。我还删除了/System/Library/Frameworks/Ruby.framework文件夹。

之后brew停止工作(因为它需要Ruby)。所以我决定安装Ruby。但是由于brewRVM依赖于Ruby,我必须从源代码编译Ruby 2.1.2。

./configure
make
sudo make install

我现在得到了什么:

ruby -v
ruby 2.1.2p95 (2014-05-08 revision 45877) [x86_64-darwin13.0]

which ruby
/usr/local/bin/ruby

问题:似乎brew完全崩溃了

brew doctor
/usr/local/bin/brew: /usr/local/Library/brew.rb: /System/Library/Frameworks/Ruby.framework/Versions/Current/usr/bin/ruby: bad interpreter: No such file or directory
/usr/local/bin/brew: line 23: /usr/local/Library/brew.rb: Undefined error: 0

问题:如何修复brew

0 个答案:

没有答案