这是关于SO的第一个问题,如果我没有正确遵守指南,请告诉我。
我正在尝试在Zurb的WordPress主题WP-foundation上本地工作。我已下载WP并将其安装在MAMP的htdocs文件夹中,并下载了WP-foundation主题并将其粘贴到themes文件夹中。我能够设置数据库并设置配置文件。所有这一切似乎都很好。
我想使用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社区进行互动。
答案 0 :(得分:0)
对于MAC OS X
打开终端并检查是否安装了ruby gems
gem -v
如果您获得版本号,请尝试
gem install rubygems-update
或(如果您收到错误)
sudo gem install rubygems-update
并输入您的系统密码。 完成后,只需重新启动指南针应用程序,然后重试。
希望这很有用!