Skip to content

Instantly share code, notes, and snippets.

@fedecarg
Created March 12, 2013 12:40
Show Gist options
  • Save fedecarg/5142565 to your computer and use it in GitHub Desktop.
Save fedecarg/5142565 to your computer and use it in GitHub Desktop.

Installing Ruby with RVM

Install RVM

federico@~$ echo insecure >> ~/.curlrc
federico@~$ curl -L https://get.rvm.io | bash -s stable --ruby
federico@~$ source ~/.bash_profile

Create a Gem set (Ruby and RoR)

federico@~$ rvm install 1.8.6
federico@~$ rvm use 1.8.6 --default
federico@~$ rvm gemset create rails123
federico@~$ ruby -v
ruby 1.8.6 
federico@~$ gem install rails -v 1.2.3
federico@~$ rails -v
Rails 1.2.3

Switch back to your system

federico@~$ rvm system
federico@~$ rails -v
Rails 2.3.5

Switch back to your RVM environment

federico@~$ rvm 1.8.6@rails123

Delete Gem set

federico@~$ rvm gemset delete rails123
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment