还没有弄清楚确切原因
can't find header files for ruby
If you get the can't find header files for ruby error message when trying to build an extension or a gem, it means that Ruby cannot locate its header files.
Header files are not delivered by default with Mac OS X, you need to install the Xcode Tools package after the installation. You can find it in the Optional Installs / Xcode Tools directory on the Leopard DVD.