Created
June 7, 2011 02:02
-
-
Save adamcarr/1011540 to your computer and use it in GitHub Desktop.
Ubuntu RVM Rails
This file contains hidden or 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 | |
echo "Installing dependencies" | |
sudo apt-get install ruby curl bison build-essential autoconf zlib1g-dev libssl-dev libxml2-dev libreadline6-dev git-core subversion sqlite3 | |
echo "Installing RVM" | |
bash < <(curl -s https://rvm.beginrescueend.com/install/rvm) | |
echo "Configuring RVM" | |
echo '[[ -s "/home/adamcarr/.rvm/scripts/rvm" ]] && . "/home/adamcarr/.rvm/scripts/rvm" # Load RVM function' >> ~/.bashrc | |
source ~/.bashrc | |
echo "Installing ruby 1.9.2-head" | |
rvm install 1.9.2-head | |
echo "Setting ruby 1.9.2-head as default" | |
rvm use 1.9.2-head --default | |
echo "Installing rails pre" | |
gem install rails --pre --no-ri --no-rdoc |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment