再一次,安装Compass时遇到问题,例如here只有不同。
我的版本和错误:
$ cat /etc/issue
Ubuntu 10.04.1 LTS \n \l
$ ruby -v
ruby 1.8.7 (2010-01-10 patchlevel 249) [i486-linux]
$ compass -v
Compass 0.8.17 [2465bab]
Copyright (c) 2008-2009 Chris Eppstein
Released under the MIT License.
$ haml -v
Haml/Sass 3.0.18 (Classy Cassidy)
$ compass -w --trace
NoMethodError on line 18 of /var/lib/gems/1.8/gems/chriseppstein-compass-0.8.17/lib/compass/sass_extensions/monkey_patches/stylesheet_updating.rb: undefined method `dependency_updated?' for Sass::Plugin:Module
/var/lib/gems/1.8/gems/chriseppstein-compass-0.8.17/lib/compass/compiler.rb:39:in `out_of_date?'
/var/lib/gems/1.8/gems/chriseppstein-compass-0.8.17/lib/compass/compiler.rb:38:in `each'
/var/lib/gems/1.8/gems/chriseppstein-compass-0.8.17/lib/compass/compiler.rb:38:in `out_of_date?'
/var/lib/gems/1.8/gems/chriseppstein-compass-0.8.17/lib/compass/commands/watch_project.rb:52:in `recompile'
/var/lib/gems/1.8/gems/chriseppstein-compass-0.8.17/lib/compass/commands/watch_project.rb:18:in `perform'
/var/lib/gems/1.8/gems/chriseppstein-compass-0.8.17/lib/compass/commands/base.rb:15:in `execute'
/var/lib/gems/1.8/gems/chriseppstein-compass-0.8.17/lib/compass/commands/project_base.rb:19:in `execute'
/var/lib/gems/1.8/gems/chriseppstein-compass-0.8.17/lib/compass/exec.rb:242:in `do_command'
/var/lib/gems/1.8/gems/chriseppstein-compass-0.8.17/lib/compass/exec.rb:57:in `perform!'
/var/lib/gems/1.8/gems/chriseppstein-compass-0.8.17/lib/compass/exec.rb:40:in `run!'
/var/lib/gems/1.8/gems/chriseppstein-compass-0.8.17/bin/compass:8
/var/lib/gems/1.8/bin/compass:19:in `load'
/var/lib/gems/1.8/bin/compass:19
我看了stylesheet_updating.rb,这是一些猴子补丁esoterica我不知道如何调试。
我发现参考的Compass引物是从2008年开始的,这似乎没什么用。
想法?
答案 0 :(得分:1)
...启动命令行并使用“sudo synaptic”启动突触,输入我的密码并搜索“libcompass-ruby”。搜索提出了两个文件:libcompass-ruby和libcompass-ruby1.8安装了这些文件。我快速右键单击并选择“标记为完全删除”,然后单击“应用”按钮将其删除。我回到我的项目并尝试运行“罗盘 - 观察”,这次它起作用了。 http://mawuli.wordpress.com/2011/07/19/how-i-troubleshooted-my-compass-sass-rubygem-installation ... /
答案 1 :(得分:0)
我安装了
$ sudo gem install chriseppstein-compass
显然,这会让我感到混淆。
做的:
$ sudo gem uninstall chriseppstein-compass
$ sudo gem install compass
现在正在运行。