Skip to content

Instantly share code, notes, and snippets.

@ashmckenzie
Created September 3, 2012 04:05
Show Gist options
  • Save ashmckenzie/3606667 to your computer and use it in GitHub Desktop.
Save ashmckenzie/3606667 to your computer and use it in GitHub Desktop.
Bootstrap for new Ubuntu box
#!/bin/bash
RUBY_VERSION='1.9.3-p194'
sudo apt-get install build-essential
cd /tmp
wget -c http://mirrors.ibiblio.org/ruby/ruby-${RUBY_VERSION}.tar.gz
tar xzf ruby-${RUBY_VERSION}.tar.gz
cd ruby-${RUBY_VERSION}
./configure --prefix=/opt/ruby-${RUBY_VERSION} && make && sudo make install && ln -s /opt/ruby-${RUBY_VERSION} /opt/ruby && export PATH=/opt/ruby/bin:${PATH}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment