nulltek
nulltek

Reputation: 3337

rvm and rbenv on the same machine

I traditionally have used rbenv for all my personal projects on my personal laptop without issue and like it. However I need to start working with a codebase (rails) at work and we use rvm on all our work laptops. Is there any way to get rvm and rbenv to live happily together or should I be able to bootstrap the app without rvm and just use rbenv to manage the local ruby for this repo?

Upvotes: 10

Views: 4897

Answers (2)

Stephen Grimes
Stephen Grimes

Reputation: 397

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. But it seems like rvm is a hard constraint, so perhaps move personal work to rvm.

Upvotes: 4

B Seven
B Seven

Reputation: 45943

Use rbenv to manage the local ruby for the app.

I used to use RVM but switched to rbenv. I have had no problems. rbenv has advantages over RVM. Unless they are using some special feature that rbenv doesn't support, you should be able to work with rbenv.

Upvotes: 3

Related Questions