Confirmed helpful.
sudo ln -s $(xcrun --show-sdk-path)/usr/include /usr/include
Known problem already reported upstream to Apple.
In the mean time, install full Xcode or you can just rip these headers out of the Xcode5.app. To do so, download Xcode5, mount the DMG, and then run:
sudo cp -a /Volumes/Xcode/Xcode5-DP.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.9.sdk/usr/include/mach_debug $(xcrun --show-sdk-path)/usr/include/
Confirmed helpful.
sudo ln -s $(xcrun --show-sdk-path)/System/Library/Frameworks/Ruby.framework/Versions/2.0/Headers/ruby.h /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/include/ruby.h
sudo ln -s $(xcrun --show-sdk-path)/System/Library/Frameworks/Ruby.framework/Versions/2.0/Headers/ruby /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/include/ruby
Maybe helpful, but may be worked around by other hacks.
sudo ln -s $(xcrun --show-sdk-path)/usr/include/libxml2 /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/include/libxml2
sudo ln -s $(xcrun --show-sdk-path)/usr/include/libxml2/libxml /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/include/libxml
The apple-gcc42 some of you might be used to doesn't seem to do the trick. Use brew/versions/gcc49 instead.
sudo cp -a /Volumes/Xcode/Xcode5-DP.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/lipo /Library/Developer/CommandLineTools/usr/bin/
sudo ln -s $(xcrun --show-sdk-path)/System/Library/Frameworks/CoreFoundation.framework/Versions/Current/Headers /usr/include/CoreFoundation
Install latest XQuartz and set CFLAGS="-I/opt/X11/include ${CFLAGS}"