Skip to content

Instantly share code, notes, and snippets.

@BinaryMuse
Created August 8, 2010 02:40
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save BinaryMuse/513497 to your computer and use it in GitHub Desktop.
Save BinaryMuse/513497 to your computer and use it in GitHub Desktop.
DND (blog): install RVM, Ruby 1.9.2 RC and Rails 3 RC.sh
#!/bin/bash
# Install RVM
bash < <( curl http://rvm.beginrescueend.com/releases/rvm-install-head )
# Modify ~/.bash_profile as necessary and source it to bring in changes
echo "[[ -s \"\$HOME/.rvm/scripts/rvm\" ]] && source \"\$HOME/.rvm/scripts/rvm\"" >> ~/.bash_profile
source ~/.bash_profile
# Install and use Ruby 1.9.2
rvm install ruby-1.9.2-rc2 && rvm use 1.9.2
# Create a gemset for and install Rails 3 RC
rvm gemset create rails3rc && rvm use 1.9.2@rails3rc
gem install rails --pre
# Make Ruby 1.9.2 and Rails 3 the default Ruby interpreter and gemset
rvm --default 1.9.2@rails3rc
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment