Skip to content

Instantly share code, notes, and snippets.

@chaffeqa
Created June 10, 2011 17:15
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save chaffeqa/1019279 to your computer and use it in GitHub Desktop.
Save chaffeqa/1019279 to your computer and use it in GitHub Desktop.
Installing Rails 3.1 Using RVM
# Make sure RVM is up-to-date
rvm get head
rvm reload
# Install ruby-1.9.2
rvm install 1.9.2
# Create a new Gemset
# (Optional, I like it though since makes dependency issues more transparent. EX: rake 0.8.7 vs 0.9.2)
rvm gemset create rails-head
# Switch to the new ruby
# (with new gemset)...
rvm use 1.9.2@rails-head
# (without new gemset)...
rvm use 1.9.2
# Update rubygems if neccessary
gem update --system
# Install bundler gem (I use --pre because I <3 edge stuff)
gem install bundler --pre
# Install rails
gem install rails --pre
# Thats it! You can now run...
bundle install --without production
# Gotcha's...
# 1) Installing ruby-debug19...
# The RVM instructions dont work if you use a custom gemset, since the path gets funky (tries to cd @gemset).
# My fix: gem install ruby-debug19 -- --with-ruby-include="$rvm_src_path/<rvm_ruby_version_name>"
# So we type:
gem install ruby-debug19 -- --with-ruby-include="$rvm_src_path/ruby-head"
# 2) Currently ruby-debug19 isn't working with rails 3.1.0.rc4 ... bah
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment