【发布时间】:2015-03-15 23:57:01
【问题描述】:
我目前在尝试使用 RVM 安装最新的 Ruby 版本时遇到了一些问题。使用rvm install ruby-2.2.0时收到以下错误
user$ rvm install ruby-2.2.0
Searching for binary rubies, this might take some time.
No binary rubies available for: osx/10.10/x86_64/ruby-2.2.0.
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 doctor 并得到以下错误
/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
RVM 得到稳定的命令并出现此警告,但我仍然没有得到稳定的版本
* WARNING: You have '~/.profile' file, you might want to load it,
to do that add the following line to '/Users/user/.bash_profile':
source ~/.profile
我该如何解决这个问题?我一直在避免它,并且真的很想启动并运行它。在此先感谢
【问题讨论】:
标签: ruby-on-rails ruby terminal rvm homebrew