2012-03-06 1 views
3

나는 승객과 아파치를 사용하여 프로덕션에 앱을 배포하고 있습니다. 같은 서버에 문제없이 여러 응용 프로그램을 배포했습니다. 그러나 어떤 이유로이 앱에 문제가 있습니다. 나는 내 애플 리케이션에 갈 때 내 보석이 번들로 제공받을 경우 내가 승객 오류로RoR 앱을 승객과 함께 배포 할 때 번들 할 수 없음

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{[email protected]} 
    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. 

이 보이지만 : 전에 내가 번들을 실행하면

나는 경고를 많이 얻을 나는 본 적이 없어 .

passenger error

사람은 계속 될 수 있습니다 어떤 생각을 가지고?

미리 감사드립니다.

+0

합니다. BSON 1.6.0 버전을 사용하여 GemFile을 푸시 할 때 시작되었습니다. –

답변

1

분명히 그것의 bug 루비 mongo 드라이버와 1.6.0 이전 루비 젬 버전으로 작업. 그것은 이미 고정되어 1.6.1에있게 될 것입니다 (그것은 며칠 전에 발표되었을 것입니다 그리고 나는 이제 어느 날이 될 것입니다).

한편, 패치 당신의 GemFile (잘하면 당신이 모든 것을 1.6.0 체리 ...이없는) : 다른 구성과 같은 문제가

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

HTH

+0

그건 틀림없이 트릭을 했어! 고마워. – Hinchy

+0

또한이 오류는 bson_ext (1.9.1), bson 1.9.1 및 mongo 1.9.1에서 ruby ​​2.0.0을 사용하지만 ruby ​​1.9.3에서는 오류가 없습니다. 구글의 다른 페이지의 모습에서 rvm installs가 비난받는 것처럼 보입니다. 'rvm get head && rvm reinstall all'을 시도하십시오. – earlonrails

관련 문제