Skip to content

Instantly share code, notes, and snippets.

@j1n6
Created January 15, 2014 08:09
Show Gist options
  • Save j1n6/8432514 to your computer and use it in GitHub Desktop.
Save j1n6/8432514 to your computer and use it in GitHub Desktop.
Rbenv install steps
cd
git clone git://github.com/sstephenson/rbenv.git .rbenv
echo 'export PATH="$HOME/.rbenv/bin:$PATH"' >> ~/.bashrc
echo 'eval "$(rbenv init -)"' >> ~/.bashrc
exec $SHELL
git clone git://github.com/sstephenson/ruby-build.git ~/.rbenv/plugins/ruby-build
echo 'export PATH="$HOME/.rbenv/plugins/ruby-build/bin:$PATH"' >> ~/.bashrc
exec $SHELL
rbenv install 2.0.0-p353
rbenv global 2.0.0-p353
ruby -v
#The last step is to tell Rubygems not to install the documentation for each package locally
echo "gem: --no-ri --no-rdoc" > ~/.gemrc
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment