本文介绍了rbenv、rvm 和 chruby 有什么区别?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我是 Ruby 和 Rails 的新手.我正在寻找一个纯粹客观的功能和优点/缺点列表.为了尽量避免这种情况,除非您已经使用了所有 3 个系统,否则请不要回答.

I'm new-ish to Ruby and Rails. I am looking for a purely objective list of features and advantages/disadvantages of each. In an effort to keep preference out of this, please refrain from answering unless you have used all 3 systems.

推荐答案

今天提供了三个主要选项:

There's three main options available today:

  • rvm 这是最成熟的,但在 shell 修改方面也是最具侵入性的.
  • rbenv 影响较小,但仍然有效.
  • chruby 据称比 rbenv 更轻.
  • rvm which is the most established, but also the most intrusive in terms of shell modifications.
  • rbenv which is lower impact, and still works as well.
  • chruby which purports to be even lighter than rbenv.

我个人更喜欢 rbenv 因为它与 Homebrew 配合得很好,并且不会破坏shell 环境一样多,但倾向于在服务器上使用 rvm,因为它们是为非常特定的目的而设置的.

Personally I prefer rbenv because it works well with Homebrew and doesn't mangle the shell environment as much, but tend to use rvm on servers where that doesn't matter because they're set up for a very specific purpose.

这篇关于rbenv、rvm 和 chruby 有什么区别?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

10-15 22:10