Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What are the alternatives to Ruby Version Manager (rvm)? [closed]

Tags:

version

ruby

rvm

rvm had a substantial impact on ruby programming and for a long time brought lasting benefits to us, but honestly I need to stay agile and informed about other possibilities at this point. Lately I only get one version of Ruby to manage so I'm not sure if the benefit is outweighing the cost of configuration.

One alternative, rbenv, has worked well for me. rbenv is an alternative because it let's us set the global ruby version on a per-user basis, and like rvm offers support for per-project Ruby versions. Also you can override the Ruby version with an environment variable. I do not know what it's like yet to use ry. If anyone has used ry or the other alternatives, please share any knowledge or experience on this question I feel is important. I am always interested in things I have not heard of and knowing more about some of these alternatives to Ruby Version Manager (rvm). Also I feel grateful for Stackoverflow.com and this area of the internet's wealth of knowledge. Thank you.

like image 840
Bent Cardan Avatar asked Mar 11 '12 21:03

Bent Cardan


People also ask

Which is better Rbenv or RVM?

Rbenv pros over RVM: Rbenv is lightweight, RVM is heavier, Rbenv is more developer-friendly than RVM, Rbenv has a dedicated plugin for Ruby installation mechanism, RVM has it built-in.

What is RVM used for?

As you can see, RVM is a versatile tool that can be used to manage projects and entire Ruby environments. You can use RVM to configure development conditions, server installations, and even to deploy your application.

What is RVM in Ruby on Rails?

RVM, or Ruby Version Manager, is a command line tool that lets you manage and work with multiple Ruby development environments and allows you to switch between them.

Can we install RVM in Windows?

RVM supports most UNIX like systems and Windows (with Cygwin or Bash on Ubuntu on Windows). The basic requirements are bash , curl , gpg2 and overall GNU version of tools - but RVM tries to autodetect it and install anything that is needed.


1 Answers

Here is the list of available alternatives https://github.com/wayneeseguin/rvm/blob/master/docs/alt.md

There is one big difference between RVM and the rest of tools - RVM has big experience with a lot of corner cases, it covers many possible configurations, it is used on many different *nix distributions.

So all the small tools cover the minimalistic way of doing things, like installation:

./configure --prefix=$HOME/rubies/1.9.3
make
make install

Q: what prevents you from doing it ? A: Experience, do you know it will exactly build and run on any system you try ? RVM does just that it tries to provide you one way to install on every system.

The mentioned ruby 1.9.3 will most likely compile just fine, but for example you can use patches, RVM does provide already many patches, few of them are installed automatically to solve compilation/building issues, like ruby 1.8.7 or 1.8.6.

But there are other things, you want to use JRuby on production (it happens to be faster) so you need to test it ... in 1.9 mode ? that's easy just say to RVM to use 1.9 mode:

rvm install jruby-1.6.7 --1.9

now it will be by default using 1.9 mode and trust me getting there is not that easy - at least for now.

There is a lot of things which RVM does to you and for you, with latest development version you can use other project files not only .rvmrc -> https://gist.github.com/1912050#gistcomment-86549 you could play for example using .ruby-version project file which is already supported by rbfu and always get back to RVM if you feel like you need more.

like image 133
2 revs Avatar answered Oct 09 '22 10:10

2 revs