简体   繁体   English

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

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

After installation of SASS, i did : 安装SASS后,我做了:

gem install compass

And this error appears. 并出现此错误。

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

Do you have a solution ? 你有解决方案吗 ?

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

sudo apt-get install ruby-dev

I had faced the same issues, after going through the following Link , i have installed the Xcode and my issues is resolved. 我遇到了同样的问题,经过以下链接 ,我已经安装了Xcode,我的问题得到了解决。

Try to install Xcode or apple developer tools. 尝试安装Xcode或Apple开发人员工具。

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

相关问题 安装rbenv后如何修复gem权限错误? - How to fix gem permission error after installing rbenv? Ubuntu桌面脚本打开终端,导航到文件夹并运行罗盘手表 - Ubuntu desktop script to open terminal, navigate to a folder and run compass watch 如何在Cygwin中通过Shell脚本运行多个“指南针监视”? - How to run multiple “compass watch” through shell script in Cygwin? 如果.sh文件执行期间发生错误,则Jenkins构建不会标记为失败 - Jenkins build is not marked as failed if there is an error during .sh file execution 安装RPM时出错-规范失败的依赖项/ bin / sh的%post脚本 - Error while installing RPM -%post script of spec-failed dependencies /bin/sh GoogleCloudSDKInstaller安装程序在安装时失败 - GoogleCloudSDKInstaller setup failed while installing 如何使用 Remote-SSH 修复 VS Code 错误:“终端进程无法启动:启动期间发生本机异常(forkpty(3)失败。)。”? - How to fix VS Code error with Remote-SSH: "the terminal process failed to launch: A native exception occurred during launch (forkpty(3) failed.)."? 黄瓜jvm失败:生成失败,出现异常 - cucumber jvm FAILED FAILURE: Build failed with an exception `gem安装了xcpretty`并返回错误 - Did `gem install xcpretty` and it returned an error 使用 Inno Setup 安装程序安装 Windows shell 扩展 DLL - Installing Windows shell extension DLL with Inno Setup installer
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM