2013-07-11 81 views
13

的到目前为止,我只知道怎么做这样RVM确定并安装最新版本的红宝石

rvm 2.0.0 

命令幸运的谷歌告诉我

当前稳定版本是2.0.0-P247。

但我不应该能够使用rvm来为我做这一步吗?我无法弄清楚如何告诉rvm安装最新版本的ruby,而无需手动指定它。

回答

3

我不知道的方式有RVM只是自动安装最新版本,但这里只使用RVM三个简单的命令:

rvm reload 
rvm list known # This will show all the available versions, including the latest 
rvm install <latest_version> # Replace <latest_version> with the latest shown by the last command 
25

就足够了:

rvm get stable 
rvm use ruby --install --default 

它会更新rvm,检查最新的红宝石 - 安装它如果丢失 - 并设置为默认值

4

rvm install ruby-head应该安装最新的已知版本。

+3

这实际上安装最新的从红宝石源,而不是最新的官方红宝石发布 – VTS12