升级山狮后无法安装某些宝石 [英] Not able to install some gems after mountain lion upgrade
本文介绍了升级山狮后无法安装某些宝石的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我刚刚将Macbook更新为Mountain Lion,但是由于下面有关标题的错误,我现在无法安装一些gems.我环顾四周,这似乎与缺少Ruby标头有关.建议安装Xcode,因此我从应用程序商店安装了完整的Xcode,还安装了Xcode命令行工具.但是仍然没有运气.有什么建议吗?
I just updated my Macbook to Mountain Lion, but now I'm not able to install some gems, because of the below error about headers. I looked around and it seems to have to do with Ruby headers missing. It was suggested to install Xcode, so I installed the full Xcode from the app store and also the Xcode command line tools. But still no luck. Any suggestions?
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.
推荐答案
请确保安装Xcode的命令行工具.
Be sure to install Xcode's Command-Line Tools.
此提示帮助我解决了此问题:
This hint helped me with this issue:
sudo ln -s /usr/bin/llvm-gcc-4.2 /usr/bin/gcc-4.2
这篇关于升级山狮后无法安装某些宝石的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文