21 January 2012

Ruby Version Manager (RVM) allow to easily manage multiple versions of ruby and associated gem sets on the same server. It can be installed by a single user for himself only or by the administrator and made available for all users of the system. See this article for more information.


Run the following command to install for all users on the system.

sudo bash < <( curl -s https://raw.github.com/wayneeseguin/rvm/master/binscripts/rvm-installer )

This will generate the following output.

Downloading RVM from wayneeseguin branch master
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100  799k  100  799k    0     0   381k      0  0:00:02  0:00:02 --:--:--  922k

Installing RVM to /usr/local/rvm/
    Creating RVM system user group 'rvm'

# RVM:  Shell scripts enabling management of multiple ruby environments.
# RTFM: https://rvm.beginrescueend.com/
# HELP: http://webchat.freenode.net/?channels=rvm (#rvm on irc.freenode.net)
# Screencast: http://screencasts.org/episodes/how-to-use-rvm

# In case of any issues read output of 'rvm requirements' and/or 'rvm notes'

Installation of RVM in /usr/local/rvm/ is almost complete:

  * First you need add all users that will be using rvm to 'rvm' group,
    anyone using rvm will be operating with `umask g+w`.

  * To start using RVM you need to run `source /etc/profile.d/rvm.sh`
    in all your open shell windows, in rare cases you need to reopen all shell windows.

  * Optionally you can run `rvm tools rvm-env ruby bash` which will generate
    shebang wrappers for easier selecting ruby in scripts.

# oneadmin,
#   Thank you for using RVM!
#   I sincerely hope that RVM helps to make your life easier and more enjoyable!!!
# ~Wayne


To verify installation, reload your environment or close your session and open a new one then try

rvm requirements

Install a ruby version

To list all the versions managed by rvm, run:

rvm list known

Then to install ruby 1.9.3

rvm install 1.9.3

blog comments powered by Disqus