Skip to content

Instantly share code, notes, and snippets.

@sjbwylbs
Created August 28, 2011 23:52
Show Gist options
  • Select an option

  • Save sjbwylbs/1177414 to your computer and use it in GitHub Desktop.

Select an option

Save sjbwylbs/1177414 to your computer and use it in GitHub Desktop.
Installing Ruby on Rails 3.1 for a clean install of Mac OS X 10.7 Lion
# 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
$ bash < <(curl -s https://rvm.beginrescueend.com/install/rvm)
# Load RVM into new shells
# As instructed from the above command, add the line stated to the very bottom of the following file
/etc/bashrc
# Confirm RVM is loaded in new shell
$ rmv -v
# Install ruby 1.9.2
$ rvm install ruby-1.9.2-p290
# Tell rvm to use ruby 1.9.2 as default
$ rvm --default use 1.9.2
# Create a new gemset for Rails 3.1 pre-release
$ rvm [email protected] --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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment