Bundler:“在任何源中都找不到 bson-1.4.0”
我正在尝试进行捆绑安装
,但收到错误 在任何源中都找不到 bson-1.4.0
。 我相信 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 实例。
如果我尝试请求早期版本,然后执行捆绑更新
,我会收到错误
无法找到 gem 'bson (= 1.4.0) x86-mingw32',这是 gem 需要的'mongo (~> 1.3) x86-mingw32',在任何来源中。
可能是因为它是 64 位的吗?有什么可能的解决方法吗?
运行轨道3.0.10
I'm trying to do a bundle install
but I'm getting the errorCould 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
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
今天早些时候我遇到了这个问题。结果 v1.4 和 v1.4.1 已从 rubygems.org 中删除。我设法通过手动下载 gem 文件并安装到应用程序来解决这个问题。
http://tinyurl.com/3fksky8
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