1

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

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。

4

2 回答 2

2

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

如果没有帮助,请尝试:

gem update --system
gem update
bundle install
compass clean
于 2013-06-18T08:41:23.193 回答
1

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

bundle update sass-rails

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

于 2013-06-18T16:11:21.733 回答