安装Compass时出错

时间:2014-11-26 11:33:42

标签: ruby ubuntu sass compass

我正在使用ruby运行Ubuntu:

ruby 1.9.3p484 (2013-11-22 revision 43786) [x86_64-linux]

安装了Sass 3.4.9,现在我正在尝试从http://compass-style.org/install/安装Compass但是在运行gem install compass时遇到错误:

Building native extensions.  This could take a while...
ERROR:  Error installing compass:
    ERROR: Failed to build gem native extension.

            /usr/bin

/ruby1.9.1 extconf.rb
    /usr/lib/ruby/1.9.1/rubygems/custom_require.rb:36:in `require': cannot load such file -- mkmf (LoadError)
        from /usr/lib/ruby/1.9.1/rubygems/custom_require.rb:36:in `require'
        from extconf.rb:4:in `<main>'


Gem files will remain installed in /var/lib/gems/1.9.1/gems/ffi-1.9.6 for inspection.
Results logged to /var/lib/gems/1.9.1/gems/ffi-1.9.6/ext/ffi_c/gem_make.out

这是日志文件内容:

  /usr/bin/ruby1.9.1 extconf.rb
    /usr/lib/ruby/1.9.1/rubygems/custom_require.rb:36:in `require': cannot load such file -- mkmf (LoadError)
        from /usr/lib/ruby/1.9.1/rubygems/custom_require.rb:36:in `require'
        from extconf.rb:4:in `<main>'

我一直在谷歌搜索几个小时,但仍然卡住了。怎么解决?

1 个答案:

答案 0 :(得分:0)

有一个问题。 您可以在此处查看更多信息: https://github.com/sass/sass/pull/1527&gt; https://github.com/guard/listen/issues/275