6

Ruby Compass 不工作,代码如下,我在网上尝试了 10-20 种方法,有什么建议吗?

在屏幕截图中,您会找到一种更简单的方法来读取我的 gem 的终端转储和错误,如果您想从那里获取一些东西,您会在屏幕截图下方找到文本

谢谢,干杯,罗伯特

在此处输入图像描述

    RubyGems is a sophisticated package manager for Ruby.  This is a
basic help message containing pointers to more information.

  Usage:
    gem -h/--help
    gem -v/--version
    gem command [arguments...] [options...]

  Examples:
    gem install rake
    gem list --local
    gem build package.gemspec
    gem help install

  Further help:
    gem help commands            list all 'gem' commands
    gem help examples            show some examples of usage
    gem help gem_dependencies    gem dependencies file guide
    gem help platforms           gem platforms guide
    gem help <COMMAND>           show help on COMMAND
                                   (e.g. 'gem help install')
    gem server                   present a web page at
                                 http://localhost:8808/
                                 with info about installed gems
  Further information:
    http://guides.rubygems.org
sh-3.2# gem list

*** LOCAL GEMS ***

bigdecimal (1.2.5, 1.2.0)
CFPropertyList (2.2.8, 2.2.0)
chunky_png (1.3.1)
compass (1.0.1)
compass-core (1.1.0.alpha.0, 1.0.1)
compass-import-once (1.0.5)
ffi (1.9.3)
io-console (0.4.2)
json (1.8.1, 1.7.7)
libxml-ruby (2.7.0, 2.6.0)
mini_portile (0.6.0)
minitest (5.4.1, 4.3.2)
multi_json (1.10.1)
nokogiri (1.6.3.1, 1.5.6)
power_assert (0.1.3)
psych (2.0.5, 2.0.0)
rake (10.3.2, 0.9.6)
rb-fsevent (0.9.4)
rb-inotify (0.9.5)
rdoc (4.1.1, 4.0.0)
rubygems-update (2.4.1)
sass (3.4.2)
sqlite3 (1.3.9, 1.3.7)
test-unit (3.0.1, 2.0.0.0)
sh-3.2# compass compile -e production --force
LoadError on line ["54"] of /Library/Ruby/Site/2.0.0/rubygems/core_ext/kernel_require.rb: cannot load such file -- rgbapng
Run with --trace to see the full backtrace
4

2 回答 2

9

通过安装以下指南针扩展修复:

gem install compass-normalize
gem install compass-rgbapng
gem install toolkit
于 2014-09-02T12:08:26.640 回答
1

那并没有为我解决问题。但是,我能够通过使用重新安装指南针 gem 来修复它

gem uninstall compass
gem install compass

我认为您可以通过将指南针 gem 更新到最新版本来更轻松地修复它gem update compass

注意:如果你使用 Rails,你可能还需要更新你的compass-railsgem。否则,compass watch命令将开始挂起。在 github 上看到这个问题

于 2017-01-27T22:35:26.417 回答