Skip to content

Instantly share code, notes, and snippets.

@kwoods
Created March 20, 2012 15:22
Show Gist options
  • Save kwoods/2136937 to your computer and use it in GitHub Desktop.
Save kwoods/2136937 to your computer and use it in GitHub Desktop.
Installing Ruby on Rails 3.2.3 for Mac OS X 10.7.3 Lion
# This is a guide for how I installed rails 3.2.2 on Mac OS X 10.7.3 Lion upgrade.
# There is no Warranty expressed, and I am not responsible for any issues that may arise from following this guide.
# - inspired by tuscanidream
# Install RVM
$ bash -s stable < <(curl -s https://raw.github.com/wayneeseguin/rvm/master/binscripts/rvm-installer)
# Add the following line to your .bash_profile to load RVM into your new shells
[[ -s "/Users/my_user_name/.rvm/scripts/rvm" ]] && source "/Users/my_user_name/.rvm/scripts/rvm" # This loads RVM into a shell session.
# Confirm RVM is loaded in new shell
$ rvm -v
rvm pkg install libyaml rvm pkg install readline
rvm install 1.9.3 --with-gcc=clang --with-readline-dir=/Users/name/.rvm/usr --with-libyaml-dir=/Users/name/.rvm/usr
# Install ruby 1.9.3
$ rvm install ruby-1.9.3-p194
# Tell rvm to use ruby 1.9.3 as default
$ rvm use ru --default
# Create a new gemset for Rails 3.2.3
$ 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.2.2
$ gem install rails
# Confirm installed gems
$ gem list
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment