[英]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.