Created
July 1, 2013 15:12
-
-
Save gwik/5901699 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
#!/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