Last active
December 15, 2015 22:29
-
-
Save ingoclaro/5333283 to your computer and use it in GitHub Desktop.
ruby install on OSX with ruby-build and chruby
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
#$HOME/.bundle/config | |
--- | |
BUNDLE_BIN: bin | |
BUNDLE_PATH: .bundle |
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
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 |
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
# 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