Skip to content

Instantly share code, notes, and snippets.

@leonardteo
Created August 24, 2012 18:44
Show Gist options
  • Save leonardteo/3454155 to your computer and use it in GitHub Desktop.
Save leonardteo/3454155 to your computer and use it in GitHub Desktop.
Install Script for Ruby 1.9.3 on Ubuntu 12.04 LTS
#!/bin/bash
curl -L https://get.rvm.io | sudo bash -s stable
usermod -a -G rvm ubuntu # 'ubuntu' is the default admin user
sudo apt-get -y install build-essential openssl libreadline6 libreadline6-dev curl git-core zlib1g zlib1g-dev libssl-dev libyaml-dev libsqlite3-dev sqlite3 libxml2-dev libxslt-dev autoconf libc6-dev ncurses-dev automake libtool bison subversion pkg-config
source /usr/local/rvm/scripts/rvm
rvmsudo rvm install 1.9.3
rvm --default use 1.9.3
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment