使用Rvm安装Ruby 1.9.3时出现问题

时间:2013-03-26 17:06:21

标签: ruby install rvm homebrew ruby-1.9.3

我正在尝试使用本指南安装ruby 1.9.3:http://www.moncefbelyamani.com/how-to-install-xcode-homebrew-git-rvm-ruby-on-mac/

当我运行rvm install 1.9.3时,我收到此错误

Searching for binary rubies, this might take some time.
No binary rubies available for: osx/10.8/x86_64/ruby-1.9.3-p392.
Continuing with compilation. Please read 'rvm mount' to get more information on binary         rubies.
Installing requirements for osx, might require sudo password.
Skipping `brew update` make sure your formulas are up to date.
Cowardly refusing to continue, please read 'rvm autolibs'.

然后我运行brew update,我得

Already up-to-date.

我也尝试了brew doctor,我得到了

Your system is raring to brew.

有什么问题?我该如何解决这个问题?

2 个答案:

答案 0 :(得分:8)

我遇到了同样的问题,这对我有用:

\curl -L https://get.rvm.io | bash -s stable --rails --autolibs=enabled

来源:

https://rvm.io/

答案 1 :(得分:0)

尝试:

rvm list known

如果没有返回任何内容,或者不包含您要查找的ruby版本,请尝试更新

rvm get stable

然后尝试再次安装你想要的ruby版本。