I m 试图使用Mongoid(不是通过铁路或任何其他框架)的便衣,我认为Im会陷入一些形式的依赖冲突:
/opt/local/lib/ruby/site_ruby/1.8/rubygems.rb:779:in `report_activate_error : RubyGem version error: activesupport(3.0.0 not >= 2.2.2, < 3.0.pre) (Gem::LoadError)
from /opt/local/lib/ruby/site_ruby/1.8/rubygems.rb:214:in `activate
from /opt/local/lib/ruby/site_ruby/1.8/rubygems.rb:1082:in `gem
from /opt/local/lib/ruby/gems/1.8/gems/mongoid-1.9.1/lib/mongoid.rb:24
from /opt/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:36:in `gem_original_require
from /opt/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:36:in `require
from ./rubymongo.rb:4
我的当地铁路已经升级为3.0,如果我正确阅读错误的话,有些地方要求必须提供积极支持;3.0.pre和3.0.0太新?
这是否是因为铁路3.0是新的品牌,也许Mongoid在某个地方拥有一个有3.0的组合选择。 我怎么做?
我过去还安装了旧铁路,但出现不同的错误:
/opt/local/lib/ruby/site_ruby/1.8/rubygems.rb:233:in `activate : can t activate activesupport (>= 2.2.2, < 3.0.pre, runtime) for [], already activated activesupport-3.0.0 for ["mongoid-1.9.1"] (Gem::LoadError)
from /opt/local/lib/ruby/site_ruby/1.8/rubygems.rb:1082:in `gem
from /opt/local/lib/ruby/gems/1.8/gems/mongoid-1.9.1/lib/mongoid.rb:24
from /opt/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:36:in `gem_original_require
from /opt/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:36:in `require
from ./rubymongo.rb:4
如果我回到安装了旧的现役支助设施,我如何确保新来的 t也受到打击?
我对Rub仍然很新,请在你的答复中阐述。
在向Mongoid 2.0 beta升级后,Im正在经历一场新的冲突,认为 b子太新:
/opt/local/lib/ruby/site_ruby/1.8/rubygems.rb:233:in `activate : can t activate bson (= 1.0.4, runtime) for ["mongoid-2.0.0.beta.17"], already activated bson-1.0.7 for ["mongo-1.0.7", "mongoid-2.0.0.beta.17"] (Gem::LoadError)
from /opt/local/lib/ruby/site_ruby/1.8/rubygems.rb:249:in `activate
from /opt/local/lib/ruby/site_ruby/1.8/rubygems.rb:248:in `each
from /opt/local/lib/ruby/site_ruby/1.8/rubygems.rb:248:in `activate
from /opt/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:35:in `require
from ./rubymongo.rb:4
为什么已经装满1.0.4 son? 还有一点试图明确装上它? 我所有简单的手稿都需要的是废墟和ongo。
在座各位,我使用的是这一合理的:
actionpack (3.0.0, 2.3.8)
activemodel (3.0.0)
activerecord (3.0.0)
activeresource (3.0.0)
activesupport (3.0.0)
bson (1.0.7, 1.0.4)
bson_ext (1.0.7)
mongo (1.0.8, 1.0.7)
mongo_ext (0.19.3)
mongoid (2.0.0.beta.17)
rails (3.0.0, 2.3.8)