rvm determine and install latest version of ruby

梦想与她 提交于 2019-12-12 07:42:09

问题


So far I only know how to do commands like

rvm 2.0.0

Fortunately Google tells me

The current stable version is 2.0.0-p247.

But shouldn't I be able to use rvm to do that step for me? I can't figure out how to just tell rvm to install the latest version of ruby, without manually specifying it.


回答1:


it is enough to:

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

it will update rvm, check for latest ruby - install it if missing - and set as default




回答2:


I don't know of a way to have rvm just install the latest version automatically, but here's three simple commands using just 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



回答3:


rvm install ruby-head should install the last known version.



来源:https://stackoverflow.com/questions/17599229/rvm-determine-and-install-latest-version-of-ruby

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!