RVM Setup and Environments

RVM is the Ruby environment manager. Here are some of the commonly used commands.

Installing rvm in unix/mac

curl -L https://get.rvm.io | bash -s stable 

Setting up the bash profile for enabling rvm

File: .bash_profile

[[ -s "$HOME/.rvm/scripts/rvm" ]] && . "$HOME/.rvm/scripts/rvm"  # This loads RVM

Dont forget to source it, to load the ~/.bash_profile if you’re using the same console

source .bash_profile

Installing new Ruby version

rvm install 1.9.3-p327

Listing installed ruby versions

rvm list

Updating rvm version from head

rvm get head

Setting the default ruby version

rvm alias create default 1.9.3
rvm use 1.8.7-p302 --default

For more help use:

rvm --help

Any questions on this, please feel free to ask. We’re here to help…