我刚刚将我的 Macbook 更新为 Mountain Lion,但现在我无法安装一些 gem,因为以下有关标题的错误。我环顾四周,似乎与缺少 Ruby 标头有关。有人建议安装 Xcode,所以我从应用商店安装了完整的 Xcode 以及 Xcode 命令行工具。但仍然没有运气。有什么建议么?
ERROR: Failed to build gem native extension. (Gem::Installer::ExtensionBuildError)
checking for ffi.h... *** extconf.rb failed ***
Could not create Makefile due to some reason, probably lack of
necessary libraries and/or headers. Check the mkmf.log file for more
details. You may need configuration options.