捆扎机:"找不到BSON-1.4.0在任何来源和QUOT; [英] Bundler: "Could not find bson-1.4.0 in any of the sources"
问题描述
我试图做一个捆绑安装
,但我得到的错误
找不到BSON-1.4.0中的任何一种资源
。
我相信BSON-1.4.0是mongoid〜> 2.0的要求这是在我的Gemfile。
当我尝试创业板安装-v 1.4.0 BSON
,我得到的错误
错误:无法找到一个有效的宝石BSON'(= 1.4.0),这是为什么:
发现BSON(1.4.0),但对于平台的JRuby
捆在我的开发机器(运行OSX 10.6.8)安装工作正常,但我在64位Amazon EC2实例有这个问题。
如果我尝试申请的早期版本,然后做一个捆绑更新
,我得到的错误
找不到创业板'BSON(= 1.4.0)的x86的mingw32,这是需要由宝石蒙戈(〜> 1.3)的x86的mingw32,在任何来源。
难道是因为它是64位的?任何可能的解决方法?
走行轨3.0.10
解决方案我今天早些时候有这个确切的问题
I'm trying to do a bundle install
but I'm getting the error
Could not find bson-1.4.0 in any of the sources
.
I believe bson-1.4.0 is a requirement for mongoid ~> 2.0 which is in my Gemfile.
When I try gem install -v 1.4.0 bson
, I get the error
ERROR: Could not find a valid gem 'bson' (= 1.4.0), here is why:
Found bson (1.4.0), but was for platform jruby
the bundle install works fine on my development machine (running OSX 10.6.8), but I'm having this problem on a 64-Bit Amazon EC2 instance.
If I try requesting an earlier version, then do a bundle update
, I get the error
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.
could it be because of it being 64bit? Any possible workarounds?
running rails 3.0.10
I had this exact problem earlier today. It turns out v1.4 and v1.4.1 have been removed from rubygems.org. I managed to get around it by downloading the gem files manually and installing to the app.
这篇关于捆扎机:"找不到BSON-1.4.0在任何来源和QUOT;的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!