Skip to content

Instantly share code, notes, and snippets.

@pearofducks
Last active December 16, 2015 18:59
Show Gist options
  • Save pearofducks/5481396 to your computer and use it in GitHub Desktop.
Save pearofducks/5481396 to your computer and use it in GitHub Desktop.
Rbenv local install and ruby 2.0-p0 on deb/ubuntu
#!/bin/bash
sudo apt-get update
sudo apt-get -y upgrade
sudo apt-get -y install build-essential
sudo apt-get -y install git-core
sudo apt-get -y install libssl1.0.0 libssl-dev
git clone git://github.com/sstephenson/rbenv.git ~/.rbenv
echo 'export PATH="$HOME/.rbenv/bin:$PATH"' >> .bash_profile
echo 'eval "$(rbenv init -)"' >> .bash_profile
source ~/.bash_profile
git clone git://github.com/sstephenson/ruby-build.git ~/.rbenv/plugins/ruby-build
rbenv install 2.0.0-p0
rbenv global 2.0.0-p0
rbenv rehash
gem install bundler
rbenv rehash
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment