rvm had a substantial impact on ruby programming and for a long time brought lasting benefits to us, but honestly I need to stay agile and informed about other possibilities at this point. Lately I only get one version of Ruby to manage so I'm not sure if the benefit is outweighing the cost of configuration.
rvm对ruby编程产生了重大影响,并且很长一段时间给我们带来了持久的好处,但老实说,我需要保持敏捷,并在此时了解其他可能性。最近我只得到一个版本的Ruby来管理,所以我不确定它的好处是否超过配置成本。
One alternative, rbenv, has worked well for me. rbenv is an alternative because it let's us set the global ruby version on a per-user basis, and like rvm offers support for per-project Ruby versions. Also you can override the Ruby version with an environment variable. I do not know what it's like yet to use ry. If anyone has used ry or the other alternatives, please share any knowledge or experience on this question I feel is important. I am always interested in things I have not heard of and knowing more about some of these alternatives to Ruby Version Manager (rvm). Also I feel grateful for *.com and this area of the internet's wealth of knowledge. Thank you.
另一种选择,rbenv,对我来说效果很好。 rbenv是另一种选择,因为它让我们在每个用户的基础上设置全局ruby版本,就像rvm为每个项目的Ruby版本提供支持一样。您还可以使用环境变量覆盖Ruby版本。我不知道使用ry是什么感觉。如果有人使用过ry或其他替代品,请分享我认为重要的这个问题的任何知识或经验。我总是对我没有听说过的事情感兴趣,并且对Ruby Version Manager(rvm)的一些替代方法有更多的了解。此外,我感谢*.com和互联网这方面的丰富知识。谢谢。
1 个解决方案
#1
14
Here is the list of available alternatives https://github.com/wayneeseguin/rvm/blob/master/docs/alt.md
以下是可用替代品的列表https://github.com/wayneeseguin/rvm/blob/master/docs/alt.md
There is one big difference between RVM and the rest of tools - RVM has big experience with a lot of corner cases, it covers many possible configurations, it is used on many different *nix distributions.
RVM和其他工具之间有一个很大的区别--RVM在很多极端情况下都有丰富的经验,它涵盖了许多可能的配置,它用于许多不同的* nix发行版。
So all the small tools cover the minimalistic way of doing things, like installation:
所以所有的小工具都涵盖了简约的做事方式,比如安装:
./configure --prefix=$HOME/rubies/1.9.3
make
make install
Q: what prevents you from doing it ? A: Experience, do you know it will exactly build and run on any system you try ? RVM does just that it tries to provide you one way to install on every system.
问:什么阻止你这样做?答:经验,你知道它会在你尝试的任何系统上构建和运行吗? RVM只是试图为您提供一种在每个系统上安装的方法。
The mentioned ruby 1.9.3 will most likely compile just fine, but for example you can use patches, RVM does provide already many patches, few of them are installed automatically to solve compilation/building issues, like ruby 1.8.7 or 1.8.6.
提到的ruby 1.9.3很可能编译得很好,但是例如你可以使用补丁,RVM确实提供了很多补丁,其中很少有自动安装来解决编译/构建问题,比如ruby 1.8.7或1.8.6 。
But there are other things, you want to use JRuby on production (it happens to be faster) so you need to test it ... in 1.9 mode ? that's easy just say to RVM to use 1.9 mode:
但是还有其他的东西,你想在生产中使用JRuby(它碰巧更快),所以你需要在1.9模式下测试它?这很容易说RVM使用1.9模式:
rvm install jruby-1.6.7 --1.9
now it will be by default using 1.9 mode and trust me getting there is not that easy - at least for now.
现在它将默认使用1.9模式并相信我没有那么容易 - 至少现在。
There is a lot of things which RVM does to you and for you, with latest development version you can use other project files not only .rvmrc
-> https://gist.github.com/1912050#gistcomment-86549 you could play for example using .ruby-version
project file which is already supported by rbfu and always get back to RVM if you feel like you need more.
RVM为您和您做了很多事情,使用最新的开发版本,您可以使用其他项目文件.rvmrc - > https://gist.github.com/1912050#gistcomment-86549您可以玩使用.ruby-version项目文件的示例,rbfu已经支持该文件,如果您需要更多内容,请始终返回RVM。
#1
14
Here is the list of available alternatives https://github.com/wayneeseguin/rvm/blob/master/docs/alt.md
以下是可用替代品的列表https://github.com/wayneeseguin/rvm/blob/master/docs/alt.md
There is one big difference between RVM and the rest of tools - RVM has big experience with a lot of corner cases, it covers many possible configurations, it is used on many different *nix distributions.
RVM和其他工具之间有一个很大的区别--RVM在很多极端情况下都有丰富的经验,它涵盖了许多可能的配置,它用于许多不同的* nix发行版。
So all the small tools cover the minimalistic way of doing things, like installation:
所以所有的小工具都涵盖了简约的做事方式,比如安装:
./configure --prefix=$HOME/rubies/1.9.3
make
make install
Q: what prevents you from doing it ? A: Experience, do you know it will exactly build and run on any system you try ? RVM does just that it tries to provide you one way to install on every system.
问:什么阻止你这样做?答:经验,你知道它会在你尝试的任何系统上构建和运行吗? RVM只是试图为您提供一种在每个系统上安装的方法。
The mentioned ruby 1.9.3 will most likely compile just fine, but for example you can use patches, RVM does provide already many patches, few of them are installed automatically to solve compilation/building issues, like ruby 1.8.7 or 1.8.6.
提到的ruby 1.9.3很可能编译得很好,但是例如你可以使用补丁,RVM确实提供了很多补丁,其中很少有自动安装来解决编译/构建问题,比如ruby 1.8.7或1.8.6 。
But there are other things, you want to use JRuby on production (it happens to be faster) so you need to test it ... in 1.9 mode ? that's easy just say to RVM to use 1.9 mode:
但是还有其他的东西,你想在生产中使用JRuby(它碰巧更快),所以你需要在1.9模式下测试它?这很容易说RVM使用1.9模式:
rvm install jruby-1.6.7 --1.9
now it will be by default using 1.9 mode and trust me getting there is not that easy - at least for now.
现在它将默认使用1.9模式并相信我没有那么容易 - 至少现在。
There is a lot of things which RVM does to you and for you, with latest development version you can use other project files not only .rvmrc
-> https://gist.github.com/1912050#gistcomment-86549 you could play for example using .ruby-version
project file which is already supported by rbfu and always get back to RVM if you feel like you need more.
RVM为您和您做了很多事情,使用最新的开发版本,您可以使用其他项目文件.rvmrc - > https://gist.github.com/1912050#gistcomment-86549您可以玩使用.ruby-version项目文件的示例,rbfu已经支持该文件,如果您需要更多内容,请始终返回RVM。