Skip to content

Instantly share code, notes, and snippets.

@ingoclaro
Last active December 15, 2015 22:29
Show Gist options
  • Save ingoclaro/5333283 to your computer and use it in GitHub Desktop.
Save ingoclaro/5333283 to your computer and use it in GitHub Desktop.
ruby install on OSX with ruby-build and chruby
#$HOME/.bundle/config
---
BUNDLE_BIN: bin
BUNDLE_PATH: .bundle
brew install ruby-build
mkdir $HOME/.rubies
ruby-build 1.9.2-p320 $HOME/.rubies/1.9.2-p320
ruby-build 1.9.3-p392 $HOME/.rubies/1.9.3-p392
ruby-build 2.0.0-p0 $HOME/.rubies/2.0.0-p0
MACOSX_DEPLOYMENT_TARGET=10.9 CC=/usr/local/bin/gcc-4.2 ruby-build -v ree-1.8.7-2011.12 $HOME/.rubies/ree-1.8.7-2011.12
brew install chruby
chruby 2.0.0-p0
echo 2.0.0-p0 > /Users/ingo/.ruby-version
# add this to .profile or .zshrc:
if [[ -s "/usr/local/opt/chruby/share/chruby/chruby.sh" ]]; then
source "/usr/local/opt/chruby/share/chruby/chruby.sh"
source "/usr/local/opt/chruby/share/chruby/auto.sh"
fi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment