【问题标题】:Bundler: "Could not find bson-1.4.0 in any of the sources"Bundler:“在任何源中都找不到 bson-1.4.0”
【发布时间】: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


    【解决方案1】:

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

    http://tinyurl.com/3fksky8

    【讨论】:

    • 知道了,感谢您提供的链接解释了发生了什么!我认为我们现在最好等待 v1.4.2。
    猜你喜欢
    • 2017-07-18
    • 2019-07-03
    • 2014-06-18
    • 2018-04-08
    • 2012-04-19
    • 2015-03-04
    • 2014-07-11
    • 2012-06-08
    • 2019-11-16
    相关资源
    最近更新 更多