Skip to content

Instantly share code, notes, and snippets.

@GVRV
Created October 30, 2012 07:57
Show Gist options
  • Save GVRV/3978868 to your computer and use it in GitHub Desktop.
Save GVRV/3978868 to your computer and use it in GitHub Desktop.
install rvm and ruby 1.9.2 on Ubuntu 12.04
#!/usr/bin/env sh
# according to http://octopress.org/docs/setup/rvm/
# !! notice the line about bash and zsh!!!
sudo apt-get 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
bash -s stable < <(curl -s https://raw.github.com/wayneeseguin/rvm/master/binscripts/rvm-installer)
# If using bash
echo '[[ -s "$HOME/.rvm/scripts/rvm" ]] && . "$HOME/.rvm/scripts/rvm" # Load RVM function' >> ~/.bash_profile
source ~/.bash_profile
# If using Zsh do this instead
echo '[[ -s $HOME/.rvm/scripts/rvm ]] && source $HOME/.rvm/scripts/rvm' >> ~/.zshrc
source ~/.zshrc
rvm install 1.9.2 && rvm use 1.9.2
rvm rubygems latest
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment