Created
August 8, 2010 02:40
-
-
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
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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