安装Mavericks后,我的Sass停止使用CodeKit进行编译。它指出我与Breakpoint的错误。我重新安装了系统,安装SASS和Compass之后,Breakpoint安装一直给我这个错误:
ERROR: Error installing breakpoint:
ERROR: Failed to build gem native extension.
/System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/bin/ruby 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
Gem files will remain installed in /Library/Ruby/Gems/2.0.0/gems/ffi-1.9.3 for inspection.
我该怎么办?
PS:我在安装Compass之前也做过gem update --system。
谢谢!
答案 0 :(得分:2)
我遇到了这个错误,并且可以通过运行来修复它:
sudo ARCHFLAGS=-Wno-error=unused-command-line-argument-hard-error-in-future gem install breakpoint
虽然显然它也可以通过运行来修复:
export CFLAGS=-Qunused-arguments;
export CPPFLAGS=-Qunused-arguments;
sudo gem install breakpoint