我正在尝试做 abundle install
但我得到了错误
Could not find bson-1.4.0 in any of the sources
。我相信 bson-1.4.0 是我的 Gemfile 中的 mongoid ~> 2.0 的要求。
当我尝试gem install -v 1.4.0 bson
时,我得到了错误
ERROR: Could not find a valid gem 'bson' (= 1.4.0), here is why:
Found bson (1.4.0), but was for platform jruby
捆绑安装在我的开发机器(运行 OSX 10.6.8)上运行良好,但我在 64 位 Amazon EC2 实例上遇到了这个问题。
如果我尝试请求较早的版本,然后执行 a bundle update
,我会收到错误
Could not find gem 'bson (= 1.4.0) x86-mingw32', which is required by gem 'mongo (~> 1.3) x86-mingw32', in any of the sources.
可能是因为它是64位吗?任何可能的解决方法?
运行轨道 3.0.10