简体   繁体   English

如何通过RVM安装最新版本的Ruby?

[英]How can I install the latest version of Ruby via RVM?

rvm list known returns the following: 已知的rvm列表返回以下内容:

# MRI Rubies
[ruby-]1.8.6[-p420]
[ruby-]1.8.7[-head] # security released on head
[ruby-]1.9.1[-p431]
[ruby-]1.9.2[-p330]
[ruby-]1.9.3[-p551]
[ruby-]2.0.0[-p598]
[ruby-]2.1.4
[ruby-]2.1[.5]
[ruby-]2.2.0
[ruby-]2.2-head
ruby-head

According to the Ruby website, 2.2.1 is the latest version, but I don't see it listed on the rvm list. 根据Ruby网站,2.2.1是最新版本,但是我没有在rvm列表中看到它。 What should I do? 我该怎么办?

rvm install ruby-head

This will compile straight from Ruby's github directory 这将直接从Ruby的github目录编译

OR 要么

rvm install 2.2.1

Even if isn't listed usually using version number when listed at official website works flawlessly 即使未列出,通常使用官方网站上列出的版本号也能正常工作

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM