Rbenv is lightweight, RVM is heavier, Rbenv is more developer-friendly than RVM, Rbenv has a dedicated plugin for Ruby installation mechanism, RVM has it built-in.
Along with RVM, Rbenv has long been the most popular version manager for Ruby. Rbenv uses shims to intercept common Ruby commands. (Asdf also uses shims.) After installing Rbenv with Homebrew, you must modify your ~/.
You can't really have rbenv and rvm coexist. With rvm, it overrides the 'gem' command, so that would make rbenv useless. If you want to use rbenv for both, you'd have to avoid using gemsets and instead use bundler to handle dependencies.
There's three main options available today:
rbenv
.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.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With