Created
September 27, 2012 20:37
-
-
Save LucasArruda/3796328 to your computer and use it in GitHub Desktop.
Install Ruby - Ubuntu 12.04
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
#!/bin/sh | |
# Install Ruby on Ubuntu 12.04 with rbenv to manage | |
sudo apt-get install build-essential ruby-dev zlib1g-dev openssl libopenssl-ruby1.9.1 libssl-dev libruby1.9.1 libreadline-dev git-core libsqlite3-dev libxslt-dev libxml2-dev libpq-dev | |
rm -rf .rbenv | |
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 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment