Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save motleytech/2ae1d605eeab1daa9db4d5bb818e3a9c to your computer and use it in GitHub Desktop.
Save motleytech/2ae1d605eeab1daa9db4d5bb818e3a9c to your computer and use it in GitHub Desktop.
# create a new user
sudo apt-get update
sudo apt-get install git-core curl zlib1g-dev build-essential libssl-dev libreadline-dev libyaml-dev libsqlite3-dev sqlite3 libxml2-dev libxslt1-dev libcurl4-openssl-dev python-software-properties libffi-dev libpq-dev
cd
git clone https://github.com/rbenv/rbenv.git ~/.rbenv
echo 'export PATH="$HOME/.rbenv/bin:$PATH"' >> ~/.bashrc
echo 'eval "$(rbenv init -)"' >> ~/.bashrc
exec $SHELL
git clone https://github.com/rbenv/ruby-build.git ~/.rbenv/plugins/ruby-build
echo 'export PATH="$HOME/.rbenv/plugins/ruby-build/bin:$PATH"' >> ~/.bashrc
exec $SHELL
git clone https://github.com/rbenv/rbenv-gem-rehash.git ~/.rbenv/plugins/rbenv-gem-rehash
rbenv install 2.2.4
rbenv global 2.2.4
ruby -v
gem install bundler
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment