由于Sass版本无法执行Compass

时间:2013-06-17 22:24:40

标签: sass compass-sass

突然间,我在OS X上运行指南针时收到以下错误消息:

WARN: Unresolved specs during Gem::Specification.reset: fssm (>= 0.2.7) WARN: Clearing out unresolved specs. Please report a bug if this causes problems. /Users/carlesandres/.rvm/gems/ruby-1.9.3-p286@global/gems/bundler-1.3.5/lib/bundler/runtime.rb:33:in ``block in setup': You have already activated sass 3.2.9, but your Gemfile requires sass 3.2.8. Using bundle exec may solve this. (Gem::LoadError) from /Users/carlesandres/.rvm/gems/ruby-1.9.3-p286@global/gems/bundler-1.3.5/lib/bundler/runtime.rb:19:in ``setup' from /Users/carlesandres/.rvm/gems/ruby-1.9.3-p286@global/gems/bundler-1.3.5/lib/bundler.rb:127:in ``setup' from /Users/carlesandres/.rvm/gems/ruby-1.9.3-p286@global/gems/bundler-1.3.5/lib/bundler.rb:132:in ``require' from /Users/carlesandres/.rvm/gems/ruby-1.9.3-p286/gems/compass-0.12.2/bin/compass:26:in ``<top (required)>' from /Users/carlesandres/.rvm/gems/ruby-1.9.3-p286/bin/compass:23:in ``load' from /Users/carlesandres/.rvm/gems/ruby-1.9.3-p286/bin/compass:23:in ``<main>' from /Users/carlesandres/.rvm/gems/ruby-1.9.3-p286/bin/ruby_noexec_wrapper:14:in ``eval' from /Users/carlesandres/.rvm/gems/ruby-1.9.3-p286/bin/ruby_noexec_wrapper:14:in

我真的不知道如何解决这个问题。

更新:我正在从Grunt和Yeoman生成的Gruntfile调用Compass。

2 个答案:

答案 0 :(得分:2)

尝试在项目中运行compass clean并重新编译。

如果没有帮助,请尝试:

gem update --system
gem update
bundle install
compass clean

答案 1 :(得分:1)

我终于通过更新sass-rails gem解决了这个问题。

bundle update sass-rails

我猜旧的sass-rails gem试图强制sass v.3.2.8与实际安装的3.2.9安装版本冲突。