RVM Setup and Environments

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

Installing rvm in unix/mac

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

Setting up the bash profile for enabling rvm

File: .bash_profile

1
[[ -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

1
source .bash_profile

Installing new Ruby version

1
rvm install 1.9.3-p327

Listing installed ruby versions

1
rvm list

Updating rvm version from head

1
rvm get head

Setting the default ruby version

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

For more help use:

1
rvm --help

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

Comments

Comments