Skip to content

Instantly share code, notes, and snippets.

@dawn360
Last active December 21, 2015 15:38
Show Gist options
  • Select an option

  • Save dawn360/ceecc38a51869efe7bc0 to your computer and use it in GitHub Desktop.

Select an option

Save dawn360/ceecc38a51869efe7bc0 to your computer and use it in GitHub Desktop.
https://www.digitalocean.com/community/tutorials/how-to-install-ruby-on-rails-on-ubuntu-12-04-lts-precise-pangolin-with-rvm
#Install rbenv and dependencies
sudo apt-get update
sudo apt-add-repository -y ppa:chris-lea/node.js
sudo apt-get install python-software-properties
sudo apt-get -y update
sudo apt-get -y install curl git-core nodejs
curl https://raw.githubusercontent.com/fesplugas/rbenv-installer/master/bin/rbenv-installer | bash
nano ~/.bashrc
export RBENV_ROOT="${HOME}/.rbenv"
if [ -d "${RBENV_ROOT}" ]; then
export PATH="${RBENV_ROOT}/bin:${PATH}"
eval "$(rbenv init -)"
fi
#reload the shell.
source ~/.bashrc
# install the dependencies (using the installer tool),
rbenv bootstrap-ubuntu-12-04
curl -fsSL https://gist.github.com/mislav/055441129184a1512bb5.txt | \
rbenv install --patch 2.2.3
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment