After installing OSX Mavericks 10.9 demo, Im getting this after running bundle
Gem::Installer::ExtensionBuildError: ERROR: Failed to build gem native ext
I just upgraded mountain lion to mavericks and received the above message.
I ended up launching XCode and it asked to install components automatically. After that was completed I re-bundled and it worked.
For others running into this problem, I had to also install apple-gcc via brew to get it to work:
brew install apple-gcc42