简体   繁体   English

这些rvm ruby​​版本意味着什么

[英]what do these rvm ruby versions mean

If I run this command 如果我运行此命令

rvm list known

I get the following (just showing a few entries) - 我得到以下内容(只显示几个条目) -

[ruby-]1.9.3[-p194]
[ruby-]1.9.3-head
ruby-head

I want to install ruby 1.9.3. 我想安装ruby 1.9.3。 In the blog entries online I have seen people just mentioning 在网上的博客文章中我看到人们只是提到

rvm install 1.9.3

which actually installs -p194 version. 实际安装-p194版本。

So how does ruby-head differ from 1.9.3-head from 1.9.3-p194 ? 那么ruby-head与1.9.3-p194的1.9.3-head有何不同? And should one of them be installed instead of -p194? 并且应该安装其中一个而不是-p194吗?

In version control, you often have a main development branch as well as certain versioned branches. 在版本控制中,您经常有一个主开发分支以及某些版本化分支。 The main branch is the future, the versioned branches have some policy around them. 主要分支是未来,版本化分支机构围绕它们制定了一些政策。

So, for example, ruby-head is a wild playground of new features, while ruby-1.9.1 or ruby-1.9.2 or ruby-1.9.3 have certain feature or syntax lockdowns in place on them. 因此,例如,ruby-head是一个新功能的狂野操场,而ruby-1.9.1或ruby-1.9.2或ruby-1.9.3在它们上面具有某些特征或语法锁定。

Within a feature branch there are further ongoing bug- and security-fixes. 在功能分支中,还有进一步的错误和安全修复。 Ruby 1.9.3-p194 is more recent than Ruby 1.9.3-p125. Ruby 1.9.3-p194比Ruby 1.9.3-p125更新。 There were no public releases for the 68 checkins between these two versions, for whatever reason. 无论出于何种原因,这两个版本之间的68个签到都没有公开发布。 Maybe a change introduced more bugs. 也许改变引入了更多的错误。 Maybe a change didn't fully solve what it was trying to fix. 也许改变并没有完全解决它试图解决的问题。 Ruby 1.9.3-head is the head of this development branch, with the absolute latest changes (and the risks that may accompany them). Ruby 1.9.3-head是这个开发分支的负责人,具有绝对的最新变化(以及可能伴随它们的风险)。

In general, you want to pick a specific release. 通常,您希望选择特定版本。 This is what RVM is doing for you when you asked for "some version of 1.9.3" and it said "I'll give you the latest approved release in that branch". 当你要求“某个版本的1.9.3”并且它说“我会在那个分支中给你最新批准的版本”时,这就是RVM正在为你做的事情。 These blessed releases have been vetted and approved by the software maintainers. 这些受祝福的版本已经过软件维护人员的审核和批准。 Picking a -head branch is surfing on the very forefront of development. 挑选一个-head分支冲浪发展的最前沿。 It may be helpful—maybe someone just checked in a fix yesterday to exactly some problem you're having; 它可能会有所帮助 - 也许有人昨天刚刚检查了一下您遇到的问题; maybe the interpreter is 2% faster or more memory efficient—but it is more likely to bring you trouble. 也许解释器的速度提高了2%或更高的内存效率 - 但它更有可能给你带来麻烦。

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

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