在OSX Yosemite(或Sierra)中安装指南针时出错 [英] Error installing compass in OSX Yosemite (or Sierra)
本文介绍了在OSX Yosemite(或Sierra)中安装指南针时出错的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
美好的一天
我有一台装有OSX优胜美地的Mac
的Mac我试图用命令安装指南针:
sudo gem install compass
但我收到以下错误:
构建本地扩展。这可能需要一段时间...
错误:安装指南针时出错:
错误:无法构建gem原生扩展。
/System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/bin/ruby -r ./siteconf20151001-1122-1jqcu8r.rb extconf.rb
mkmf.rb can在/System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/include/ruby.h
extconf失败时找到ruby的头文件,退出代码1
Gem文件将保留安装在/Library/Ruby/Gems/2.0.0/gems/ffi-1.9.10进行检查。
结果记录到/Library/Ruby/Gems/2.0.0/extensions/universal-darwin-14/2.0.0/ffi-1.9.10/gem_make.out
在尝试安装包之前,我使用命令更新了gem
sudo gem update - - 系统
并且发生更新没有错误
解决方案您可能需要先安装命令行开发工具。
xcode-select --install
然后再次尝试 sudo gem install compass
Good day I have a Mac with OSX Yosemite I'm trying to install the compass with the command:
sudo gem install compass
but I am getting the following error:
Building native extensions. This could take a while... ERROR: Error installing compass: ERROR: Failed to build gem native extension. /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/bin/ruby -r ./siteconf20151001-1122-1jqcu8r.rb extconf.rb mkmf.rb can't find header files for ruby at /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/include/ruby.h extconf failed, exit code 1 Gem files will remain installed in /Library/Ruby/Gems/2.0.0/gems/ffi-1.9.10 for inspection. Results logged to /Library/Ruby/Gems/2.0.0/extensions/universal-darwin-14/2.0.0/ffi-1.9.10/gem_make.out
before attempting to install the package I updated the gem with the command
sudo gem update --system
and the update occurred without errors
解决方案
You probably need to install the command line developer tools first.
xcode-select --install
Then try sudo gem install compass
again
这篇关于在OSX Yosemite(或Sierra)中安装指南针时出错的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文