如果我的宝石具有冲突的依赖关系,我有什么选择?

时间:2011-06-14 15:24:05

标签: ruby rubygems bundle padrino

我正在尝试使用Mongoid在Padrino中启动并运行示例项目。我在运行bundle时遇到错误,因为padrino需要3.0.8的activesupport,而mongoid需要3.0.5。所以我宝石安装3.0.5,我能够运行捆绑。但现在当我尝试创建一个像

这样的新模型时
padrino g model post title:string body:text

我收到此错误

=> Problem loading ./config/boot.rb
=> You have already activated activesupport 3.0.8, but your 
Gemfile requires activesupport 3.0.5. Consider using bundle exec.

任何想法都会有所帮助。

2 个答案:

答案 0 :(得分:0)

升级rubygems,它们可能允许它工作。

答案 1 :(得分:0)

目前捆绑器和Active *依赖关系还存在一些问题,因此强制它为gem 'activesupport', '~>3.0.11', :require => 'active_support'