Mavericks totally broke Ruby for me. Here’s how I fixed it:

  • Updated from Xcode 4 to Xcode 5
  • Installed rvm
  • Installed Ruby 1.9.3 through rvm
  • Got an icu required error when trying to install gems. Tried to run brew install icu4c, it failed. Tried to run brew update, got the error: Your local changes to the following files would be overwritten by merge. Ran:

cd brew --prefix git remote add origin https://github.com/mxcl/homebrew.git git fetch origin git reset --hard origin/master

  • Ran brew update
  • Ran brew install icu4c
  • Installed gems. Done!