Skip to content

Instantly share code, notes, and snippets.

@adamcarr
Created June 7, 2011 02:02
Show Gist options
  • Save adamcarr/1011540 to your computer and use it in GitHub Desktop.
Save adamcarr/1011540 to your computer and use it in GitHub Desktop.
Ubuntu RVM Rails
#!/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