RVM&家酿问题

时间:2014-11-30 16:39:44

标签: ruby-on-rails ruby terminal rvm homebrew

我最近在终端内打开了一个旧项目并收到以下消息

 ruby-2.0.0-p598 is not installed.
 To install do: 'rvm install ruby-2.0.0-p598'

然后我运行rvm install rvm install ruby​​-2.0.0-p598并收到此消息

 Searching for binary rubies, this might take some time.
 No binary rubies available for: osx/10.10/x86_64/ruby-2.0.0-p598.
 Continuing with compilation. Please read 'rvm help mount' to get more information on binary rubies.
 Checking requirements for osx.
 /usr/local/bin/brew: /usr/local/Library/brew.rb:/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/bin/ruby: bad interpreter: No such file or directory
 /usr/local/bin/brew: line 21: /usr/local/Library/brew.rb: Undefined error: 0
 ERROR: '/bin' is not writable - it is required for Homebrew, try 'brew doctor' to fix it!
 Requirements installation failed with status: 1.

然后我跑了brew医生并收到了这条消息

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

这里发生了什么,我该如何解决这个问题?

1 个答案:

答案 0 :(得分:0)

sudo chown -R username:group / usr / local再次尝试brew医生。