Skip to content

Instantly share code, notes, and snippets.

@dgpokl
Created April 12, 2012 00:46
Show Gist options
  • Save dgpokl/2363814 to your computer and use it in GitHub Desktop.
Save dgpokl/2363814 to your computer and use it in GitHub Desktop.
Installing Ruby on Rails 3.1 for a clean install of Mac OS X
# This is a guide for how I installed rails 3.1 on a clean install of Mac OS X 10.7 Lion.
# There is no Warranty expressed, and I am not responsible for any issues that may arise from following this guide.
# Installing rails should be simple. I cringed at other peoples methods shared via Twitter.
# Keil Miller July 26, 2011
# Install RVM
$ curl -L get.rvm.io | bash -s stable
# Load RVM into new shells
# As instructed from the above command, add the line stated to the very bottom of the following file
~/bashrc
# Confirm RVM is loaded in new shell
$ rvm -v
# Install ruby 1.9.3
$ rvm install ruby-1.9.3-p125
# Tell rvm to use ruby 1.9.3 as default
$ rvm --default use 1.9.3
# Create a new gemset for Rails 3.1 pre-release
$ rvm 1.9.3@ewok --create
# Confirm that your new gemset exists
$ rvm gemset list
# Update rake to 0.9.2 or newer
# It is important that you do this before installing rails
$ gem update rake
# Install Rails 3.1 pre-release
$ gem install rails --pre
# Confirm installed gems
$ gem list
@samchoi
Copy link

samchoi commented May 18, 2012

The most recent ruby is ruby-1.9.3-p125, so instead of running line 17, run:
rvm install ruby-1.9.3-p194

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