Switched to rbenv
Dec 27th, 2013
I switched from using RVM to rbenv not too long ago. I’m pretty happy with the switch, and I think I’m better off. There are a couple of reasons that made me switch.
- Quick Switching between Ruby Versions
- Upgrade with Git
I was using RVM for the longest time, because it is what most everybody recommended. However, I had seen the .ruby-version files throughout other projects, and was wondering why people liked rbenv so much.
Then all of the sudden I started having troubles while switching ruby versions with RVM. My gems got all wonky, and it just became a chore, where I found myself uninstalling my ruby and then reinstalling it just to get it to work properly.
So I switched to rbenv. The switch was super easy, all I had to do was this:
Note: You can install it with Brew, but I wanted more control, so I installed it this way
1 2 3
I then installed ruby-build which is used to compile and install the different versions of ruby. It’s just as easy to install
Now, you should be able to relaunch your terminal, and run
rbenv install --list to see all the ruby versions that are availible for install. After that, it’s just as simple as running `rbenv install 2.0.0-p427’ to install Ruby 2.0.0
After you install a ruby version you can do a couple of different things.
1 2 3 4
The quick switching between ruby versions is the main reason I like using rbenv so much.