Ruby Compass无法正常工作,代码如下,我在网上尝试了10-20种方法,有什么建议吗?
在屏幕截图中,您将找到一种更简单的方式来阅读我的宝石的终端转储和错误,如果您想从那里取一些东西,您将在屏幕截图下找到该文本
谢谢, 干杯, 罗伯特
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
答案 0 :(得分:9)
通过安装以下指南针扩展程序修复:
gem install compass-normalize
gem install compass-rgbapng
gem install toolkit
答案 1 :(得分:1)
这对我没有解决。但是,我能够通过使用
重新安装指南针宝石来解决它gem uninstall compass
gem install compass
我认为只需使用gem update compass
将指南针宝石更新到最新版本,就可以更轻松地修复它。
注意:如果您使用rails,则可能还需要更新compass-rails
gem。否则,compass watch
命令将开始挂起。见issue on github