Skip to content

Instantly share code, notes, and snippets.

@lucasmartins
Created April 4, 2012 20:11
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save lucasmartins/2305223 to your computer and use it in GitHub Desktop.
Save lucasmartins/2305223 to your computer and use it in GitHub Desktop.
Install RBenv+Ruby-Build
#!/usr/bin/env bash
# This is (kinda) a RBenv (plus ruby-build) installer for linux
# Just copy & paste off the install instructions from Github.
cd
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
exec $SHELL
mkdir -p ~/.rbenv/plugins
cd ~/.rbenv/plugins
git clone git://github.com/sstephenson/ruby-build.git
exec $SHELL
rbenv rehash
rbenv help
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment