All notes
Rvm

Quick Start


rvm list

# Switch to ruby version 2.1.3
rvm 2.1.3
# If there is none, you have to install one first:
rvm install ruby-2.1.3

# Establish two enviroments for two rails versions:
rvm gemset create rails410 rails320
rvm [email protected]
gem install rails -v 4.1.0
rvm [email protected]
gem install rails -v 3.2.0
rvm [email protected] ; rails --version
# Rails 4.1.0
rvm [email protected] ; rails --version
# Rails 3.2.0

# Show the path
rvm env

rvm use [email protected]$NAME

FAQ

RVM env is not working after switching termials

SO: rvm when open new terminal.


# Set the default version:
rvm --default use 1.9.3

# This setting usually exists in ~/.bash_profile, but not ~/.bashrc.
# Add it to rc script, e.g. ~/.bashrc.
[[ -s "$HOME/.rvm/scripts/rvm" ]] && source "$HOME/.rvm/scripts/rvm" # Load RVM into a shell session *as a function*