如何安装 Ruby Compass?

如何安装 Ruby Compass?
Error installing compass:
    ERROR: Failed to build gem native extension.

    current directory: /var/lib/gems/2.3.0/gems/ffi-1.9.23/ext/ffi_c
/usr/bin/ruby2.3 -r ./siteconf20180226-6140-2ex61w.rb extconf.rb
mkmf.rb can't find header files for ruby at /usr/lib/ruby/include/ruby.h

有人有同样的问题吗?

答案1

我认为您必须先安装 ruby​​-dev。尝试安装该软件包,然后再次尝试安装 compass。

apt-get 安装 ruby​​-dev

相关内容