运行时
rvm use ruby-2.0.0-p247
compass create . --bare --sass-dir "css" --css-dir "css" --javascripts-dir "js" --images-dir "img"
在仅包含html和css文件的目录中我收到以下错误:
/Users/aljoscha/.rvm/gems/ruby-2.0.0-p247/gems/bundler-1.3.5/lib/bundler/definition.rb:361:in `validate_ruby!': Your Ruby version is 2.0.0, but your Gemfile specified 1.9.2 (Bundler::RubyVersionMismatch)
from /Users/aljoscha/.rvm/gems/ruby-2.0.0-p247/gems/bundler-1.3.5/lib/bundler.rb:116:in `setup'
from /Users/aljoscha/.rvm/gems/ruby-2.0.0-p247/gems/bundler-1.3.5/lib/bundler.rb:132:in `require'
from /Users/aljoscha/.rvm/gems/ruby-2.0.0-p247/gems/compass-0.13.alpha.12/bin/compass:26:in `<top (required)>'
from /Users/aljoscha/.rvm/gems/ruby-2.0.0-p247/bin/compass:23:in `load'
from /Users/aljoscha/.rvm/gems/ruby-2.0.0-p247/bin/compass:23:in `<main>'
from /Users/aljoscha/.rvm/gems/ruby-2.0.0-p247/bin/ruby_executable_hooks:15:in `eval'
from /Users/aljoscha/.rvm/gems/ruby-2.0.0-p247/bin/ruby_executable_hooks:15:in `<main>'
这对我来说没有意义,因为甚至没有Gemfile存在。
我的问题:
答案 0 :(得分:1)
这很奇怪,但原因似乎是我的主目录中有一个Gemfile。 删除它会使此错误消失。