2010-09-06 241 views
0

再次,安裝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和它的一些猴子補丁深奧,我不知道該怎麼調試。

我發現引用的指南針的引用是從2008年,這似乎沒有幫助。

想法?

回答

0

我曾與

$ sudo gem install chriseppstein-compass 

安裝顯然這讓我混亂的版本。

做的:

$ sudo gem uninstall chriseppstein-compass 
$ sudo gem install compass 

,它現在正在運行。

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 .../