Since I changed the development environment Mac, I am renewing the Ruby environment.
I'm thinking of using either RVM or RBEnv. What are the differences and advantages of each?
I have been using RVM so far, and I have not felt any inconvenience, but I feel that there are many people who leave RVM and move to RBEnv.
I don't develop Ruby itself for my own purposes, but I switch between multiple Rubys.
Occasionally I develop Gem.
There is a similar question in the English version, but it seems a bit old.
What is the difference between RVM and rbenv?
- RVM has a Ruby installation function (rbenv needs to use ruby-build )
- RVM overwrites cd (rbenv is created by a simple shell script)
There is a point.
RVM can build a Ruby environment by itself, but rbenv can only switch Ruby versions. Therefore, ruby-build must be installed in order to easily install Ruby with the
rbenv install command. This is not so difficult if you install it at the same time as rbenv by using a package management system such as Homebrew on OS X.
Also, RVM overwrites the cd, which modifies the functionality of the shell. rbenv is created by a simple shell script and does not compromise the functionality of the shell. If the shell function is overwritten, it will be difficult to isolate the cause when something goes wrong.