Joh*_*ohn 8 macos ruby-on-rails
我刚刚将我的Macbook更新为Mountain Lion,但现在我无法安装一些宝石,因为下面有关于标题的错误.我环顾四周,似乎与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.
Kor*_*tor 26
一定要安装Xcode的命令行工具.
这个提示帮助我解决了这个问题:
sudo ln -s /usr/bin/llvm-gcc-4.2 /usr/bin/gcc-4.2
| 归档时间: | 
 | 
| 查看次数: | 3772 次 | 
| 最近记录: |