当运行 rake
时我得到这个错误:
You have already activated rake 0.9.2, but your Gemfile requires rake 0.8.7. Consider using bundle exec.
使用 bundle exec rake
而不仅仅是 rake
似乎可行,但这是解决此问题的最佳方法吗?
最佳答案
尝试bundle clean --force
它删除了不在这个包中的所有系统 gem
关于ruby - 你已经激活了 X,但是你的 Gemfile 需要 Y,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/6317980/