Ruby on rails 3 Can';与乘客一起部署RoR应用程序时不捆绑

Ruby on rails 3 Can';与乘客一起部署RoR应用程序时不捆绑,ruby-on-rails-3,mongodb,rubygems,passenger,bundler,Ruby On Rails 3,Mongodb,Rubygems,Passenger,Bundler,我正在使用passenger和apache将一个应用程序部署到生产环境中。我在同一台服务器上部署了多个应用程序,没有出现问题。然而,由于某些原因,我在使用这个应用程序时遇到了问题 当我运行bundle时,我收到了许多以前从未见过的警告: WARNING: #<ArgumentError: Illformed requirement ["#<YAML::Syck::DefaultKey:0x7fcbdc2ce610> 1.6.0"]> # -*- encoding: ut

我正在使用passenger和apache将一个应用程序部署到生产环境中。我在同一台服务器上部署了多个应用程序,没有出现问题。然而,由于某些原因,我在使用这个应用程序时遇到了问题

当我运行bundle时,我收到了许多以前从未见过的警告:

WARNING:  #<ArgumentError: Illformed requirement ["#<YAML::Syck::DefaultKey:0x7fcbdc2ce610> 1.6.0"]>
# -*- encoding: utf-8 -*-

Gem::Specification.new do |s|
  s.name = %q{bson_ext}
  s.version = "1.6.0"

  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
  s.authors = ["Mike Dirolf"]
  s.date = %q{2012-02-22}
  s.description = %q{C extensions to accelerate the Ruby BSON serialization. For more information about BSON, see http://bsonspec.org.  For information about MongoDB, see http://www.mongodb.org.}
  s.email = %q{mongodb-dev@googlegroups.com}
  s.extensions = ["ext/cbson/extconf.rb"]
  s.files = ["Rakefile", "bson_ext.gemspec", "ext/cbson/extconf.rb", "ext/cbson/bson_buffer.c", "ext/cbson/cbson.c", "ext/cbson/encoding_helpers.c", "ext/cbson/bson_buffer.h", "ext/cbson/encoding_helpers.h", "ext/cbson/version.h"]
  s.homepage = %q{http://www.mongodb.org}
  s.require_paths = ["ext"]
<SNIP>

<SNIP>
Using bson (1.6.0) 
Installing bson_ext (1.6.0) with native extensions 
Using bundler (1.0.22) 
Using coffee-script-source (1.2.0) 
Using execjs (1.3.0) 
Using coffee-script (2.2.0) 
Using rack-ssl (1.3.2) 
Using json (1.6.5) 
Using rdoc (3.12) 
Using thor (0.14.6) 
Using railties (3.2.2) 
Using coffee-rails (3.2.2) 
Using geoip_city (0.2.0) 
Using jquery-rails (2.0.1) 
Using libv8 (3.3.10.4) 
Installing mongo (1.6.0) 
Using mongoid (2.4.6) 
Using rails (3.2.2) 
Using sass (3.1.15) 
Using sass-rails (3.2.4) 
Using therubyracer (0.9.10) 
Using uglifier (1.2.3) 
Your bundle is complete! Use `bundle show [gemname]` to see where a bundled gem is installed.
警告:#
#-*-编码:utf-8-*-
Gem::Specification.new do|s|
s、 名称=%q{bson\u ext}
s、 version=“1.6.0”
s、 必需的\u rubygems\u version=Gem::Requirement.new(“>=0”),如果s.respond\u to?:必需的\u rubygems\u版本=
s、 作者=[“Mike Dirolf”]
s、 日期=%q{2012-02-22}
s、 description=%q{C扩展以加速Ruby BSON序列化。有关BSON的更多信息,请参阅http://bsonspec.org.  有关MongoDB的信息,请参阅http://www.mongodb.org.}
s、 电子邮件=%q{mongodb-dev@googlegroups.com}
s、 扩展=[“ext/cbson/extconf.rb”]
s、 文件=[“Rakefile”、“bson_ext.gemspec”、“ext/cbson/extconf.rb”、“ext/cbson/bson_buffer.c”、“ext/cbson/cbson/encoding_helpers.c”、“ext/cbson/bson_buffer.h”、“ext/cbson/encoding_helpers.h”、“ext/cbson/version/h”]
s、 主页=%q{http://www.mongodb.org}
s、 需要_路径=[“ext”]
使用bson(1.6.0)
使用本机扩展安装bson_ext(1.6.0)
使用捆绑机(1.0.22)
使用coffee脚本源代码(1.2.0)
使用execjs(1.3.0)
使用coffee脚本(2.2.0)
使用机架ssl(1.3.2)
使用json(1.6.5)
使用rdoc(3.12)
使用thor(0.14.6)
使用栏杆(3.2.2)
使用咖啡导轨(3.2.2)
使用geoip_city(0.2.0)
使用jquery rails(2.0.1)
使用libv8(3.3.10.4)
安装mongo(1.6.0)
使用mongoid(2.4.6)
使用轨道(3.2.2)
使用sass(3.1.15)
使用sass导轨(3.2.4)
使用therubyracer(0.9.10)
使用uglifier(1.2.3)
您的包已完成!使用“bundle show[gemname]”查看捆绑gem的安装位置。
虽然当我进入我的应用程序时,我的gems看起来像是被捆绑在一起了,但我收到了一个乘客错误

有人知道会发生什么吗

提前感谢。

显然这是ruby mongo驱动程序1.6.0与旧版RubyGems一起使用的一个好例子。它已经修复,将在1.6.1中发布(几天前就应该发布,我想现在随时都会发布)

同时,修补您的
GemFile
(希望您没有那么多1.6.0樱桃…):

gem'bson',“<1.6.0”
gem'bson_ext',“<1.6.0”
宝石“mongo”,“<1.6.0”

HTH

在不同配置下存在相同问题。当我使用BSON 1.6.0版本推送一个GEM文件时开始。我在使用ruby 2.0.0的BSON_ext(1.9.1)、BSON 1.9.1和mongo 1.9.1中也遇到了这个错误,但ruby 1.9.3没有错误。从谷歌其他页面的外观来看,rvm的安装可能是罪魁祸首。尝试
rvm获取头部和&rvm重新安装全部

gem 'bson',  '< 1.6.0'
gem 'bson_ext', '< 1.6.0'
gem 'mongo',  '< 1.6.0'