Rvm and rbenv on the same machine

I have traditionally used rbenv for all my personal projects on my personal laptop without problems and something like that. However, I need to start working with the code base (rails) at work, and we use rvm on all our working laptops. Is there a way to make rvm and rbenv live happily together or will I need to download the application without rvm and just use rbenv to manage the local ruby ​​for this repo?

+5
source share
2 answers

Use rbenv to manage the local ruby ​​for the application.

I used RVM but switched to rbenv. I had no problems. rbenv has advantages over RVM. If they do not use some special function that rbenv does not support, you should be able to work with rbenv.

+3
source

You cannot have rbenv and rvm coexist. With rvm, it cancels the gem command, so that will make rbenv useless.

If you want to use rbenv for both, you will have to avoid using gemset and instead use bundler to handle dependencies. But rvm seems to be a hard limit, so maybe move your personal work to rvm.

+1
source

Source: https://habr.com/ru/post/1244470/


All Articles