Skip to content

Instantly share code, notes, and snippets.

@AJ-Acevedo
Last active November 1, 2016 14:13
Show Gist options
  • Save AJ-Acevedo/5519193 to your computer and use it in GitHub Desktop.
Save AJ-Acevedo/5519193 to your computer and use it in GitHub Desktop.
Installing RVM, Ruby, & Rails

Installing RVM, Ruby 2.0.0, 1.9.3, Rails 3.2.13, and 4.0.0 on 10.8.3+

Updated: July 12, 2013

The instructions below are just quick references if you know what you're doing. If you are installing RVM, Ruby, and Rails for the first time, I'd recommend following Daniel Kehoe's instructions:
http://railsapps.github.io/installing-rails.html

1. Install OS X Command Line Tools:

https://developer.apple.com/downloads/

2. Install Homebrew or MacPorts

a. Homebrew Install:
$ ruby -e "$(curl -fsSL https://raw.github.com/mxcl/homebrew/go)" $ brew doctor

b. MacPorts Install via pkg:
https://distfiles.macports.org/MacPorts/MacPorts-2.1.3-10.8-MountainLion.pkg

3. Install RVM and Ruby 2.0.0-p247 as default

$ cd ~
$ echo 'gem: --no-rdoc --no-ri' >> ~/.gemrc
$ \curl -L https://get.rvm.io | bash -s stable --autolibs=enable --ruby
$ source $HOME/.rvm/scripts/rvm
$ rvm --default 2.0.0-p247

4. Install Rails 4.0.0 and Ruby 1.9.3 with Rails 3.2.13

$ gem install rails
$ gem install bundler
$ rvm install 1.9.3
$ rvm use 1.9.3
$ gem install rails
$ gem install bundler

##Additional References:

Switch to ruby 1.9.3 with rails 3.2.13

$ rvm use 1.9.3

Switch to ruby 2.0.0-p247 with rails 4.0.0

$ rvm default

Install stable rvm, ruby, and rails, using homebrew on one shot

Single user:
$ \curl -L https://get.rvm.io | bash -s stable --autolibs=homebrew --rails
Multi-user:
$ \curl -L https://get.rvm.io | sudo bash -s stable --autolibs=homebrew --add-to-rvm-group $USER --rails

Debug rvm install

$ rvm --debug requirements ruby $ rvm --debug use --install ruby

Quick Updates:

$ rvm get stable $ rvm install 1.9.3 $ rvm use 1.9.3 $ rvm rubygems latest $ rvm install 2.0.0 $ rvm use 2.0.0 $ rvm rubygems latest

Reference:

https://rvm.io/rvm/autolibs
Homebrew
Github Issue: Install fails on 10.8.3 without Xcode installed

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment