部署 Rails4.0 + mongoid3.1.4 bundle 出错

匿名 · 2013年07月08日 · 最后由 yunzifeiyu 回复于 2013年07月09日 · 2949 次阅读

Bundler could not find compatible versions for gem "activemodel": In snapshot (Gemfile.lock): activemodel (4.0.0)

In Gemfile: mongoid (~> 3.1.4) ruby depends on activemodel (~> 3.2) ruby

这种情况可以把 activemodel (4.0.0) 降到 3.2 吗?还是有别的处理方式

参考 Ruby China 的 Gemfile https://github.com/ruby-china/ruby-china/blob/master/Gemfile

除了 Mongoid 外还有相关的 *-mongoid gem 要升级,很多都只有 git,未发稳定版。

匿名 #2 2013年07月08日

#1 楼 @Rei ok,谢谢!不过 git 的速度很慢有办法解决吗?bundle install 后,mongoid 的下载速度只有 2kb/s 左右

git 慢可以先下回来到本地,然后用修改 Gemfilegem GEM_NAME, :path => 'path/to/git_repo',再 bundle install

匿名 #4 2013年07月09日

#3 楼 @ywjno 恩,谢谢。有时间得学习一下 Git 的使用了

需要 登录 后方可回复, 如果你还没有账号请 注册新账号