I was trying run gem install json and got the following error
Gem::Ext::BuildError: ERROR: Failed to build gem native extension. /System/Library/Framewo
In my case, I actually have similar problem, but not on the system ruby, but on rubies installed by rvm from OSX 10.8, and it has issues after upgrading to OSX 10.9.
A simple reinstall works: rvm reinstall ruby-2.1.1
rvm reinstall ruby-2.1.1