Created
June 22, 2013 10:06
-
-
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
This file contains 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
# 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