繁体   English   中英

安装罗盘时出错。 无法构建gem原生扩展(Compass)

[英]Error installing compass. Failed to build gem native extension (Compass)

安装SASS后,我做了:

gem install compass

并出现此错误。

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 ./siteconf20140818-5119-rfb64z.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.3 for inspection.
Results logged to /Library/Ruby/Gems/2.0.0/extensions/universal-darwin-13/2.0.0/ffi-1.9.3/gem_make.out

你有解决方案吗 ?

我有同样的问题,如果你像我一样使用ubuntu(我的是ubuntu 14),试试这个:

sudo apt-get install ruby-dev

我遇到了同样的问题,经过以下链接 ,我已经安装了Xcode,我的问题得到了解决。

尝试安装Xcode或Apple开发人员工具。

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM