Gem 无法安装SASS 3.3 Alpha

Gem 无法安装SASS 3.3 Alpha,gem,installation,sass,Gem,Installation,Sass,每次我尝试安装最新的SASS预版本时 gem install sass --pre 在终端中返回此输出 Building native extensions. This could take a while... ERROR: Error installing sass: ERROR: Failed to build gem native extension. /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/bin/r

每次我尝试安装最新的SASS预版本时

gem install sass --pre
在终端中返回此输出

Building native extensions.  This could take a while...
ERROR:  Error installing sass:
ERROR: Failed to build gem native extension.

/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/bin/ruby extconf.rb
mkmf.rb can't find header files for ruby at /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/ruby.h


Gem files will remain installed in /Library/Ruby/Gems/1.8/gems/ffi-1.9.0 for inspection.

有什么想法吗?

手动安装预发布的版本。使用
gem安装sass--version=3.3.0.alpha.184
。如果你在mac电脑上,你可能需要使用
sudo

我也遇到了同样的错误,这对我来说非常有用:)