0

这是我关于 SO 的第一个问题,所以如果我没有正确遵守指南,请告诉我。

我正在尝试在 Zurb 的 WordPress 主题 WP-foundation 上本地工作。我已经下载了 WP 并将其安装在 MAMP 的 htdocs 文件夹中,并下载了 WP-foundation 主题并将其粘贴到主题文件夹中。我能够设置数据库并设置配置文件。所有这些似乎都运行良好。

我想使用 Scout 应用程序在 SCSS 中工作。我这样设置 Scout:

Input folder: /Applications/MAMP/htdocs/testsite/wp-content/themes/wp-foundation/sass
Output folder: /Applications/MAMP/htdocs/testsite/wp-content/themes/wp-foundation/stylesheets

当我告诉 Scout 开始寻找更改时,我收到以下错误消息:

LoadError on line 1038 of org/jruby/RubyKernel.java: no such file to load -- zurb-foundation
/Applications/Scout.app/Contents/Resources/vendor/gems/gems/compass-0.12.2/lib/compass/configuration/data.rb:161:in `require' 
/Applications/MAMP/htdocs/testsite/wp-content/themes/wp-foundation/config.rb:20:in `parse_string' org/jruby/RubyKernel.java:1088:in `eval' 
/Applications/Scout.app/Contents/Resources/vendor/gems/gems/compass-0.12.2/lib/compass/configuration/serialization.rb:24:in `parse_string' 
/Applications/Scout.app/Contents/Resources/vendor/gems/gems/compass-0.12.2/lib/compass/configuration/serialization.rb:15:in `_parse' 
org/jruby/RubyIO.java:1111:in `open' 
org/jruby/RubyKernel.java:298:in `open' 
/Applications/Scout.app/Contents/Resources/vendor/gems/gems/compass-0.12.2/lib/compass/configuration/serialization.rb:14:in `_parse' 
/Applications/Scout.app/Contents/Resources/vendor/gems/gems/compass-0.12.2/lib/compass/configuration/file_data.rb:7:in `new_from_file' 
/Applications/Scout.app/Contents/Resources/vendor/gems/gems/compass-0.12.2/lib/compass/configuration/inheritance.rb:204:in `with_defaults' 
/Applications/Scout.app/Contents/Resources/vendor/gems/gems/compass-0.12.2/lib/compass/configuration/file_data.rb:6:in `new_from_file' 
/Applications/Scout.app/Contents/Resources/vendor/gems/gems/compass-0.12.2/lib/compass/configuration/helpers.rb:42:in `configuration_for' 
/Applications/Scout.app/Contents/Resources/vendor/gems/gems/compass-0.12.2/lib/compass/configuration/helpers.rb:97:in `add_project_configuration' 
/Applications/Scout.app/Contents/Resources/vendor/gems/gems/compass-0.12.2/lib/compass/commands/project_base.rb:31:in `add_project_configuration' 
/Applications/Scout.app/Contents/Resources/vendor/gems/gems/compass-0.12.2/lib/compass/commands/project_base.rb:25:in `configure!' 
/Applications/Scout.app/Contents/Resources/vendor/gems/gems/compass-0.12.2/lib/compass/commands/project_base.rb:15:in `initialize' 
/Applications/Scout.app/Contents/Resources/vendor/gems/gems/compass-0.12.2/lib/compass/commands/update_project.rb:37:in `initialize' 
/Applications/Scout.app/Contents/Resources/vendor/gems/gems/compass-0.12.2/lib/compass/exec/sub_command_ui.rb:42:in `perform!' 
/Applications/Scout.app/Contents/Resources/vendor/gems/gems/compass-0.12.2/lib/compass/exec/sub_command_ui.rb:15:in `run!' 
/Applications/Scout.app/Contents/Resources/bin/compass:12:in `(root)'

我对 MAMP 和 Ruby 还很陌生,所以任何关于出现问题的指导都会非常有帮助。我可能离基地很远,但看起来 Scout 应用程序缺少一些指南针文件。

再次感谢,让我知道是否有更好的方式可以与 SO 社区进行交互。

4

1 回答 1

0

对于 MAC OS X

打开你的终端并检查是否安装了 ruby​​ gems

gem -v

如果您获得版本号,请尝试

gem install rubygems-update

或(如果您遇到错误)

sudo gem install rubygems-update

并输入您的系统密码。完成后,只需重新启动您的指南针应用程序并重试。

希望这有帮助!

于 2015-04-14T11:03:28.300 回答