我有一些关于指南针和Sass的问题。
我刚刚在我的Mac上安装了指南针与那里的终端(没有使用sudo)。之后,我安装了Compass.App。我有一个本地文件夹,里面有一个omega them (来自drupal)。当我尝试查看文件夹时,我得到了以下错误:
no such file to load -- rgbapng
org/jruby/RubyKernel.java:1065:in `require'
file:/Applications/compass.app/Contents/Java/lib/java/jruby-complete.jar!/META-INF/jruby.home/lib/ruby/shared/rubygems/core_ext/kernel_require.rb:55:in `require'
file:/Applications/compass.app/Contents/Java/lib/java/jruby-complete.jar!/META-INF/jruby.home/lib/ruby/shared/rubygems/core_ext/kernel_require.rb:53:in `require'
file:/Applications/compass.app/Contents/Java/compass-app.jar!/require_patch.rb:6:in `require'
/Applications/compass.app/Contents/Resources/lib/ruby/compass_1.0/compass-core-1.0.0/lib/compass/configuration/data.rb:179:in `require'
/Users/Julia/Documents/pompon/neues Web/Design/pompon/config.rb:26:in `parse_string'
org/jruby/RubyKernel.java:1101:in `eval'
/Applications/compass.app/Contents/Resources/lib/ruby/compass_1.0/compass-1.0.0/lib/compass/configuration/serialization.rb:24:in `parse_string'
/Applications/compass.app/Contents/Resources/lib/ruby/compass_1.0/compass-1.0.0/lib/compass/configuration/serialization.rb:15:in `_parse'
org/jruby/RubyIO.java:1181:in `open'
org/jruby/RubyKernel.java:349:in `open'
file:/Applications/compass.app/Contents/Java/lib/java/jruby-complete.jar!/META-INF/jruby.home/lib/ruby/1.9/open-uri.rb:35:in `open'
/Applications/compass.app/Contents/Resources/lib/ruby/compass_1.0/compass-1.0.0/lib/compass/configuration/serialization.rb:14:in `_parse'
/Applications/compass.app/Contents/Resources/lib/ruby/compass_1.0/compass-1.0.0/lib/compass/configuration/file_data.rb:7:in `new_from_file'
/Applications/compass.app/Contents/Resources/lib/ruby/compass_1.0/compass-core-1.0.0/lib/compass/configuration/inheritance.rb:207:in `with_defaults'
/Applications/compass.app/Contents/Resources/lib/ruby/compass_1.0/compass-1.0.0/lib/compass/configuration/file_data.rb:6:in `new_from_file'
/Applications/compass.app/Contents/Resources/lib/ruby/compass_1.0/compass-1.0.0/lib/compass/configuration/helpers.rb:19:in `configuration_for'
/Applications/compass.app/Contents/Resources/lib/ruby/compass_1.0/compass-1.0.0/lib/compass/configuration/helpers.rb:69:in `add_project_configuration'
/Applications/compass.app/Contents/Resources/lib/ruby/compass_1.0/compass-1.0.0/lib/compass/commands/project_base.rb:37:in `add_project_configuration'
/Applications/compass.app/Contents/Resources/lib/ruby/compass_1.0/compass-1.0.0/lib/compass/commands/project_base.rb:25:in `configure!'
/Applications/compass.app/Contents/Resources/lib/ruby/compass_1.0/compass-1.0.0/lib/compass/commands/project_base.rb:15:in `initialize'
/Applications/compass.app/Contents/Resources/lib/ruby/compass_1.0/compass-1.0.0/lib/compass/commands/update_project.rb:41:in `initialize'
file:/Applications/compass.app/Contents/Java/compass-app.jar!/ui/tray.rb:431:in `watch'
file:/Applications/compass.app/Contents/Java/compass-app.jar!/app.rb:230:in `try'
file:/Applications/compass.app/Contents/Java/compass-app.jar!/ui/tray.rb:424:in `watch'
file:/Applications/compass.app/Contents/Java/compass-app.jar!/ui/tray.rb:178:in `open_dir_handler'
anon_class786058987_1935698467.gen:13:in `handleEvent'
file:/Applications/compass.app/Contents/Java/compass-app.jar!/ui/tray.rb:70:in `run'
file:/Applications/compass.app/Contents/Java/compass-app.jar!/main.rb:129:in `run_tray'
file:/Applications/compass.app/Contents/Java/compass-app.jar!/main.rb:145:in `(root)'
org/jruby/RubyKernel.java:1065:in `require'
file:/Applications/compass.app/Contents/Java/lib/java/jruby-complete.jar!/META-INF/jruby.home/lib/ruby/shared/rubygems/core_ext/kernel_require.rb:1:in `(root)'
file:/Applications/compass.app/Contents/Java/lib/java/jruby-complete.jar!/META-INF/jruby.home/lib/ruby/shared/rubygems/core_ext/kernel_require.rb:55:in `require'我已经在终端中尝试了compass compile (正如另一个问题中所建议的)。答案是-bash: compass: command not found。
我刚刚对我的Mac进行了新的设置。所以一切都是全新安装的。
因此,欢迎任何帮助!
致以最好的问候,朱莉娅
发布于 2015-01-24 02:27:57
您需要在计算机上安装Ruby,以使Compass正常工作。但如果你想让事情变得简单,那就去看看吧。这个不需要Ruby,它将在自己的沙箱中运行。它在启动时有点慢,但在那之后一切都很顺利。有关更多信息,请参阅此link
https://stackoverflow.com/questions/28111196
复制相似问题