【发布时间】:2011-10-30 02:24:48
【问题描述】:
我正在尝试执行 bundle install 但我收到了错误
Could not find bson-1.4.0 in any of the sources。
我相信 bson-1.4.0 是 mongoid ~> 2.0 的要求,它在我的 Gemfile 中。
当我尝试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 实例上遇到了这个问题。
如果我尝试请求较早的版本,然后执行 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
【问题讨论】:
标签: rubygems amazon-ec2 mongoid bundler bson