XCode 2.2 and ruby's mysql gem


The problem:

`gem install mysql` failed with a

can't find header files for ruby. ERROR: While executing gem ... (RuntimeError) ERROR: Failed to build gem native extension.

The problem seemed to be related with the fresh version of XCode 2.2, which introduces support for the intel architecture (Who needs that anyway).

Google Groups : comp.lang.ruby had the solution. Not pretty, but it works. Now one can continue hacking some RoR.