Last active
August 29, 2015 14:17
-
-
Save scharfie/aadf38e6ed1c4ab1a65a to your computer and use it in GitHub Desktop.
rbenv for ubuntu (.bashrc)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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