It’s a bit tricky to install Ruby on Mac OS X Maverick (10.9), but here’s what worked for me.
- Upgrade to Mavericks: https://itunes.apple.com/us/app/os-x-mavericks/id675248567
- Upgrade to Xcode 5: https://itunes.apple.com/us/app/xcode/id497799835
- Install the old C compiler to support apps on Ruby 1.8:
brew install apple-gcc42
- Let the old compiler know about Xcode 5. Add this to your shell config file in your home directory:
# XCode 5 hides these away: export C_INCLUDE_PATH="$(xcrun --show-sdk-path)/usr/include" export CPLUS_INCLUDE_PATH="$(xcrun --show-sdk-path)/usr/include" export LIBRARY_PATH="$(xcrun --show-sdk-path)/usr/lib:$(xcrun --show-sdk-path)/usr/lib/system:$LIBRARY_PATH"