I have ruby 1.8.7 (2008-08-11 patchlevel 72) [universal-darwin10.0]
installed in my Snow Leopard Preview Release. Rails runs OK, but I can’t
install some gems with native extensions. The following error appear:
$ sudo gem install bluecloth
Building native extensions. This could take a while…
ERROR: Error installing bluecloth:
ERROR: Failed to build gem native extension.
mkmf.rb can’t find header files for ruby at
Gem files will remain installed in
/Library/Ruby/Gems/1.8/gems/bluecloth-2.0.5 for inspection.
Results logged to
The same error happens with many gems. I tried already update rubygem
(the installed version is 1.3.4), but the problem persist. Any ideas?