本文主要是介绍gem install sass 错误解决,希望对大家解决编程问题提供一定的参考价值,需要的开发者们随着小编来一起学习吧!
按sass 教程安装
$sudo gem install sass
Building native extensions. This could take a while...
ERROR: Error installing sass:ERROR: Failed to build gem native extension.current directory: /var/lib/gems/2.3.0/gems/ffi-1.9.18/ext/ffi_c
/usr/bin/ruby2.3 -r ./siteconf20170807-17063-1bg5m1e.rb extconf.rb
mkmf.rb can't find header files for ruby at /usr/lib/ruby/include/ruby.hextconf failed, exit code 1Gem files will remain installed in /var/lib/gems/2.3.0/gems/ffi-1.9.18 for inspection.
Results logged to /var/lib/gems/2.3.0/extensions/x86_64-linux/2.3.0/ffi-1.9.18/gem_make.out
提示上边的信息只需要安装 ruby-dev 包就解决了
sudo apt-get install ruby-dev
这篇关于gem install sass 错误解决的文章就介绍到这儿,希望我们推荐的文章对编程师们有所帮助!