Skip to content

Instantly share code, notes, and snippets.

@LucasArruda
Created September 27, 2012 20:37
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 LucasArruda/3796328 to your computer and use it in GitHub Desktop.
Save LucasArruda/3796328 to your computer and use it in GitHub Desktop.
Install Ruby - Ubuntu 12.04
#!/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