【问题标题】:Working with omega sub-theme and having trouble to make susy, sass and compass work properly使用 omega 子主题,无法使 susy、sass 和 compass 正常工作
【发布时间】:2013-07-15 17:58:51
【问题描述】:

我正在使用 omega 子主题,但无法使 susy、sass 和 compass 正常工作。

每次我去终端并执行$ compass watch我都会得到下一个结果:

/Library/Ruby/Site/1.8/rubygems/core_ext/kernel_require.rb 第 51 行的 LoadError:没有要加载的文件 -- rgbapng 使用 --trace 运行以查看完整的回溯

我使用 RVM 尝试了不同版本的 Ruby,但仍然遇到同样的问题。

接下来是--trace命令的结果:

/Library/Ruby/Site/1.8/rubygems/core_ext/kernel_require.rb:51:in require' /Library/Ruby/Gems/1.8/gems/compass-0.12.2/lib/compass/configuration/data.rb:161:inrequire' /Users/----/----/----/sites/all/themes/----/config.rb:21:in get_binding' /Library/Ruby/Gems/1.8/gems/compass-0.12.2/lib/compass/configuration/serialization.rb:20:inget_binding' /Library/Ruby/Gems/1.8/gems/compass-0.12.2/lib/compass/configuration/serialization.rb:23:in parse_string' /Library/Ruby/Gems/1.8/gems/compass-0.12.2/lib/compass/configuration/serialization.rb:15:in_parse' /Library/Ruby/Gems/1.8/gems/compass-0.12.2/lib/compass/configuration/serialization.rb:14:in open' /Library/Ruby/Gems/1.8/gems/compass-0.12.2/lib/compass/configuration/serialization.rb:14:in_parse' /Library/Ruby/Gems/1.8/gems/compass-0.12.2/lib/compass/configuration/file_data.rb:7:in new_from_file' /Library/Ruby/Gems/1.8/gems/compass-0.12.2/lib/compass/configuration/inheritance.rb:204:inwith_defaults' /Library/Ruby/Gems/1.8/gems/compass-0.12.2/lib/compass/configuration/file_data.rb:6:in new_from_file' /Library/Ruby/Gems/1.8/gems/compass-0.12.2/lib/compass/configuration/helpers.rb:42:inconfiguration_for' /Library/Ruby/Gems/1.8/gems/compass-0.12.2/lib/compass/configuration/helpers.rb:97:in add_project_configuration' /Library/Ruby/Gems/1.8/gems/compass-0.12.2/lib/compass/commands/project_base.rb:31:inadd_project_configuration' /Library/Ruby/Gems/1.8/gems/compass-0.12.2/lib/compass/commands/project_base.rb:25:in configure!' /Library/Ruby/Gems/1.8/gems/compass-0.12.2/lib/compass/commands/project_base.rb:15:ininitialize' /Library/Ruby/Gems/1.8/gems/compass-0.12.2/lib/compass/commands/update_project.rb:37:in initialize' /Library/Ruby/Gems/1.8/gems/compass-0.12.2/lib/compass/exec/sub_command_ui.rb:42:innew' /Library/Ruby/Gems/1.8/gems/compass-0.12.2/lib/compass/exec/sub_command_ui.rb:42:in perform!' /Library/Ruby/Gems/1.8/gems/compass-0.12.2/lib/compass/exec/sub_command_ui.rb:15:inrun!' /Library/Ruby/Gems/1.8/gems/compass-0.12.2/bin/compass:30 /Library/Ruby/Gems/1.8/gems/compass-0.12.2/bin/compass:44:in call' /Library/Ruby/Gems/1.8/gems/compass-0.12.2/bin/compass:44 /usr/bin/compass:23:inload' /usr/bin/compass:23

提前感谢您的帮助。

【问题讨论】:

  • 您是否尝试过安装 rgbapng gem?
  • 是的@EricMeyer,问题是我使用的是 gem install rgbang 而应该使用的是 gem install compass-rgbang。感谢您的评论。

标签: ruby drupal compass-sass susy-compass


【解决方案1】:

我的问题很简单,我使用了错误的命令来安装 rgbapng gem,而不是使用 gem install rgbang 你应该使用 gem install compass-rgbang

【讨论】:

    猜你喜欢
    • 2014-09-30
    • 2014-09-13
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多