Skip to content

Instantly share code, notes, and snippets.

@kikofernandez
Created June 22, 2013 10:06
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 kikofernandez/5840257 to your computer and use it in GitHub Desktop.
Save kikofernandez/5840257 to your computer and use it in GitHub Desktop.
In order for you to very quickly get up and running with rbenv & the latest Ruby MRI. Just copy it and run it. Original Author: Parker J. Moore
# Taken from http://blog.parkermoore.de/2013/02/06/install-rbenv-on-ubuntu-12-dot-04/
# Author: Parker J. Moore
# I couldn't find the Gist...
sudo apt-get install zlib1g-dev openssl libopenssl-ruby1.9.1 libssl-dev libruby1.9.1 libreadline-dev git-core make make-doc
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 # Restart the shell
mkdir -p ~/.rbenv/plugins
cd ~/.rbenv/plugins
git clone git://github.com/sstephenson/ruby-build.git
git clone git://github.com/sstephenson/rbenv-gem-rehash.git
rbenv install 1.9.3-p362
rbenv rehash
rbenv global 1.9.3-p362
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment