Skip to content

Instantly share code, notes, and snippets.

@13i
Created March 18, 2012 21:02
Show Gist options
  • Save 13i/2081282 to your computer and use it in GitHub Desktop.
Save 13i/2081282 to your computer and use it in GitHub Desktop.
Install rails on Ubuntu Server 11.10
# Install Git && Curl
sudo apt-get install git curl
# Get rvm
bash < <(curl -s https://rvm.beginrescueend.com/install/rvm)
# Install ruby dependencies
sudo apt-get install build-essential openssl libreadline6 libreadline6-dev zlib1g zlib1g-dev libssl-dev libyaml-dev libsqlite3-0 libsqlite3-dev sqlite3 libxml2-dev libxslt-dev autoconf libc6-dev ncurses-dev automake libtool bison subversion
# Add rvm as a function
output='[[ -s "$HOME/.rvm/scripts/rvm" ]] && source "$HOME/.rvm/scripts/rvm"'
echo "$output" >> ~/.bashrc
# Install ruby 1.9.2
rvm install 1.9.2
rvm use 1.9.2
# Install bundler
gem install bundler
# Rails 3, sqlite3-ruby, Devise 1.4.7.
bundle install
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment