Skip to content

Instantly share code, notes, and snippets.

@scharfie
Last active August 29, 2015 14:17
Show Gist options
  • Save scharfie/aadf38e6ed1c4ab1a65a to your computer and use it in GitHub Desktop.
Save scharfie/aadf38e6ed1c4ab1a65a to your computer and use it in GitHub Desktop.
rbenv for ubuntu (.bashrc)
git clone https://github.com/sstephenson/rbenv.git ~/.rbenv
echo 'export PATH="$HOME/.rbenv/bin:$PATH"' >> ~/.bashrc
echo 'eval "$(rbenv init -)"' >> ~/.bashrc
git clone https://github.com/sstephenson/ruby-build.git ~/.rbenv/plugins/ruby-build
source ~/.bashrc
# example for ruby 2.2.2:
# rbenv install 2.2.2
# - then -
# rbenv local 2.2.2
# gem install bundler
# - or -
# RBENV_VERSION=2.2.2 gem install bundler
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment