Bundler: “Could not find bson-1.4.0 in any of the sources”

安稳与你 提交于 2019-12-11 04:56:03

问题


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


回答1:


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.

http://tinyurl.com/3fksky8



来源:https://stackoverflow.com/questions/7939362/bundler-could-not-find-bson-1-4-0-in-any-of-the-sources

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!