Skip to content

Instantly share code, notes, and snippets.

@fernandoacorreia
Created July 25, 2012 17:46
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 fernandoacorreia/3177482 to your computer and use it in GitHub Desktop.
Save fernandoacorreia/3177482 to your computer and use it in GitHub Desktop.
Install rbenv on Ubuntu 12.04
# pre-reqs
sudo apt-get install git-core build-essential libssl-dev libreadline-dev zlib1g-dev libxml2-dev libxslt-dev
# rbenv
cd
git clone https://github.com/sstephenson/rbenv.git .rbenv
echo 'export PATH="$HOME/.rbenv/bin:$PATH"' >> ~/.bashrc
echo 'eval "$(rbenv init -)"' >> ~/.bashrc
exec $SHELL
# ruby-build
mkdir -p ~/.rbenv/plugins
cd ~/.rbenv/plugins
git clone https://github.com/sstephenson/ruby-build.git
# install some rubies
cd
rbenv install 1.9.2-p290
rbenv install 1.9.2-p320
rbenv install 1.9.3-p194
rbenv rehash
# set a global ruby
rbenv global 1.9.2-p290
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment