耙子不起作用

时间:2017-03-08 10:21:39

标签: ruby-on-rails ruby octopress

当我执行rake generate

时出现以下错误
Starting to watch source with Jekyll and Compass. Starting Rack on port 4000
directory source/stylesheets
DEPRECATION WARNING on line 87 of /var/lib/gems/2.3.0/gems/compass-core-1.0.3/stylesheets/compass/css3/_deprecated-support.scss: #{} interpolation near operators will be simplified
in a future version of Sass. To preserve the current behavior, use quotes:

  unquote('"$moz-"#{$experimental-support-for-mozilla} "$webkit-"#{$experimental-support-for-webkit} "$opera-"#{$experimental-support-for-opera} "$microsoft-"#{$experimental-support-for-microsoft} "$khtml-"#{$experimental-support-for-khtml}')

You can use the sass-convert command to automatically fix most cases.

DEPRECATION WARNING on line 92 of /var/lib/gems/2.3.0/gems/compass-core-1.0.3/stylesheets/compass/css3/_deprecated-support.scss: #{} interpolation near operators will be simplified
in a future version of Sass. To preserve the current behavior, use quotes:

  unquote('"$ie6-"#{$legacy-support-for-ie6} "$ie7-"#{$legacy-support-for-ie7} "$ie8-"#{$legacy-support-for-ie8}')

You can use the sass-convert command to automatically fix most cases.

    write source/stylesheets/screen.css

>>> Compass is watching for changes. Press Ctrl-C to Stop.
directory public/stylesheets
Configuration file: /home/ubuntu/octopress/_config.yml
/var/lib/gems/2.3.0/gems/posix-spawn-0.3.13/lib/posix/spawn.rb:2:in `require': /var/lib/gems/2.3.0/gems/posix-spawn-0.3.13/lib/posix_spawn_ext.so: undefined symbol: rb_fix2int - /var/lib/gems/2.3.0/gems/posix-spawn-0.3.13/lib/posix_spawn_ext.so (LoadError)
    from /var/lib/gems/2.3.0/gems/posix-spawn-0.3.13/lib/posix/spawn.rb:2:in `<top (required)>'
    from /var/lib/gems/2.3.0/gems/pygments.rb-0.6.3/lib/pygments/popen.rb:2:in `require'
    from /var/lib/gems/2.3.0/gems/pygments.rb-0.6.3/lib/pygments/popen.rb:2:in `<top (required)>'
    from /var/lib/gems/2.3.0/gems/pygments.rb-0.6.3/lib/pygments.rb:1:in `require'
    from /var/lib/gems/2.3.0/gems/pygments.rb-0.6.3/lib/pygments.rb:1:in `<top (required)>'

    from /var/lib/gems/2.3.0/gems/jekyll-2.5.3/lib/jekyll/plugin_manager.rb:74:in `require'
    from /var/lib/gems/2.3.0/gems/jekyll-
    from /var/lib/gems/2.3.0/gems/jekyll-2.5.3/lib/jekyll/commands/build.rb:29:in `process'
    from /var/lib/gems/2.3.0/gems/jekyll-2.5.3/lib/jekyll/commands/build.rb:18:in `block (2 levels) in init_with_program'
    from /var/lib/gems/2.3.0/gems/mercenary-0.3.6/lib/mercenary/command.rb:220:in `block in execute'
    from /var/lib/gems/2.3.0/gems/mercenary-0.3.6/lib/mercenary/command.rb:220:in `each'
    from /var/lib/gems/2.3.0/gems/mercenary-0.3.6/lib/mercenary/command.rb:220:in `execute'
    from /var/lib/gems/2.3.0/gems/mercenary-0.3.6/lib/mercenary/program.rb:42:in `go'
    from /var/lib/gems/2.3.0/gems/mercenary-0.3.6/lib/mercenary.rb:19:in `program'
    from /var/lib/gems/2.3.0/gems/jekyll-2.5.3/bin/jekyll:20:in `<top (required)>'
    from /usr/local/bin/jekyll:23:in `load'
    from /usr/local/bin/jekyll:23:in `<main>'
    write public/stylesheets/screen.

在运行compass watch之前,我重新启动计算机并运行compass clean

1 个答案:

答案 0 :(得分:0)

试试这个:

compass clean后跟compass watch

如果仍然无法解决问题,请清除sass缓存文件夹并清除&amp;编译。