Created
October 30, 2012 07:57
-
-
Save GVRV/3978868 to your computer and use it in GitHub Desktop.
install rvm and ruby 1.9.2 on Ubuntu 12.04
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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