Skip to content

Instantly share code, notes, and snippets.

@gwik
Created July 1, 2013 15:12
Show Gist options
  • Save gwik/5901699 to your computer and use it in GitHub Desktop.
Save gwik/5901699 to your computer and use it in GitHub Desktop.
#!/usr/bin/env bash
set -e
cd ~/.rbenv/src
curl -LO 'ftp://ftp.ruby-lang.org/pub/ruby/1.9/ruby-1.9.3-p448.tar.gz'
tar xvzf ruby-1.9.3-p448.tar.gz && cd ruby-1.9.3-p448/
./configure --prefix="$HOME/.rbenv/versions/1.9.3-p448" --enable-shared --with-opt-dir=/opt/local
make
make install
rbenv rehash
rbenv shell 1.9.3-p448
cd ~/.rbenv/src/rubygems-2.0.3
rbenv exec ruby ./setup.rb
rbenv exec gem install bundler --no-rdoc --no-ri
rbenv shell --unset
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment