1

我正在尝试做 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

4

1 回答 1

4

我今天早些时候遇到了这个确切的问题。原来 v1.4 和 v1.4.1 已从 ruby​​gems.org 中删除。我设法通过手动下载 gem 文件并安装到应用程序来解决它。

http://tinyurl.com/3fksky8

于 2011-10-29T18:24:48.670 回答