rvm vs. rbenv

111 views
Skip to first unread message

Allen Maxwell

unread,
Oct 17, 2015, 9:38:41 PM10/17/15
to ur...@googlegroups.com
Hi All,

I’ve always used rvm and am happy with it but recently I was following a tutorial on setting up an ubuntu server for rails dev on digital ocean. The instructions used rbenv and I didn’t want to deviate from it. All went well.

I want to add another website to the machine but it uses a different set of gems with different versions, ruby and rails versions too. I know how to do this cleanly with rvm but seem to be a bit twisted up with rbenv.

I would like to hear some feedback from the group: which do you prefer and why? can i do what I want to do using either and keep it clean? am I missing something?

thanks,

Max

Sean Mikkelsen

unread,
Oct 17, 2015, 11:50:24 PM10/17/15
to ur...@googlegroups.com

You can accomplish same thing with both. One difference with rbenv is that is only keeps one global copy of a gem whereas rvm will install the same gem for each gemset using it so you end up with duplicate copies. Rbenv does bundle install quicker when the gem is already installed for another app for example.

Here is a short tidbit from someone in favor of rbenv:

https://github.com/sstephenson/rbenv/wiki/Why-rbenv%3F

There are lots of comparison posts out there as well that explain the two.

--
http://utruby.org
http://groups.google.com/group/urug

please prefix the subject with [JOB] when regarding job opportunities
---
You received this message because you are subscribed to the Google Groups "Utah Ruby Users Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email to urug+uns...@googlegroups.com.
To post to this group, send email to ur...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Mike Moore

unread,
Oct 18, 2015, 1:01:28 PM10/18/15
to ur...@googlegroups.com
I use chruby and ruby-install for my rubies, and ohmygems for gemsets. Both only use path values and not bin stubs, so startup time is the fastest because you call the actual ruby executable directly.

Sent from my iPhone

Matthew Nielsen (Gmail)

unread,
Oct 19, 2015, 3:57:16 PM10/19/15
to ur...@googlegroups.com
I’m an RVM user too, only because it’s what I started and so it's become second-nature with and haven’t had a compelling reason to change*. But I haven’t seriously looked at alternatives in many years, and I think a lot of people are in that same boat where we use what we use because we always used it. This whole topic sounds like a great subject for a URUG presentation. For example, I’d never even heard of OfMyGems until now.

Would anyone (in the group, not just this thread) be interested in presenting on this? At SLC.rb or any other meeting around the state.

Would the attendees be interested in learning more about it?


(*: one specific, but rare, reason I've stuck with RVM is using gemsets where I want to use a gem that has a native extensions but that needs to be compiled with different options depending on the project.)

Ryan Holdaway

unread,
Oct 19, 2015, 6:41:11 PM10/19/15
to Utah Ruby Users Group
I'd come to that talk. 

I'm in the camp of "I used RVM when I was just starting out and didn't know what I was doing. Everyone at my work used RBENV, so I switched to that, and now I don't really know the difference."

J. R. Westmoreland

unread,
Oct 19, 2015, 6:45:47 PM10/19/15
to ur...@googlegroups.com
I’m a user of rvm because the original books and documentation that I started with used it and that was their recommendations at the time. LOL We are really creatures of habit aren’t we?

I’d be interested in a presentation of the subject.

J. R.
Reply all
Reply to author
Forward
0 new messages