You installed rbenv and ruby-build via homebrew.
- Open a terminal.
curl https://gist.github.com/prsimp/4773603/raw/upgrade_385.sh | sh- Drink some coffee or do something while Ruby compiles.
- Profit!
- If you see an error from homebrew complaining about "untracked working files" run this command:
cd $(brew --repository) && git fetch origin && git reset --hard origin/master && cd -
- Updates your
homebrewformulae - Upgrades
rbenvto0.4.0if you haven't already. - Upgrades
ruby-buildif you haven't already. - Installs
ruby 1.9.3p385and sets it as your default global Ruby (aren't we presumptious!) - Installs the
bundlerandrailsgems globally. - Prints a message about making sure to install bundler and bundle for all apps.
Ken had trouble with p385 installing and we got it fixed by first running
export CC=gcc. Found from stackoverflow