Skip to content

Instantly share code, notes, and snippets.

@mattantonelli
Last active August 29, 2015 14:21
Show Gist options
  • Save mattantonelli/3cd92c92f8a13a93fc53 to your computer and use it in GitHub Desktop.
Save mattantonelli/3cd92c92f8a13a93fc53 to your computer and use it in GitHub Desktop.
How to install rbenv on CentOS
# If you are not using bash, you should take care to append the echo
# lines below to the appropriate shell_profile
git clone git://github.com/sstephenson/rbenv.git ~/.rbenv
echo 'export PATH="$HOME/.rbenv/bin:$PATH"' >> ~/.bash_profile
echo 'eval "$(rbenv init -)"' >> ~/.bash_profile
git clone git://github.com/sstephenson/ruby-build.git ~/.rbenv/plugins/ruby-build
exec $SHELL -l
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment