Skip to content

Instantly share code, notes, and snippets.

@tunglam14
Created March 24, 2014 04:39
Show Gist options
  • Select an option

  • Save tunglam14/9734260 to your computer and use it in GitHub Desktop.

Select an option

Save tunglam14/9734260 to your computer and use it in GitHub Desktop.
sudo apt-get update
sudo apt-get install -y git gcc g++ libcurl4-openssl-dev libexpat1-dev gettext libz-dev libssl-dev build-essential libsqlite3-dev libreadline-dev
curl https://raw.github.com/fesplugas/rbenv-installer/master/bin/rbenv-installer | bash
echo """
export RBENV_ROOT="${HOME}/.rbenv"
if [ -d "${RBENV_ROOT}" ]; then
export PATH="${RBENV_ROOT}/bin:${PATH}"
eval "$(rbenv init -)"
fi
""" > ~/.bashrc
source ~/.bashrc
rbenv update
rbenv install 2.0.0-p353
rbenv rehash
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment