2012-03-06 106 views
3

我正在使用passenger和apache將應用程序部署到生產環境。我在同一臺服務器上部署了多個應用程序,沒有任何問但是,由於某種原因,我遇到了這個應用程序的問題。與乘客部署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時開始。 – 2012-03-06 22:50:28

回答

1

顯然它的一個bug與紅寶石mongo驅動程序1.6.0與舊的RubyGems版本工作。它已經固定並將在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 2012-03-10 23:19:45

+0

我也得到這個錯誤與bson_ext(1.9.1),bson 1.9.1和mongo 1.9.1使用ruby 2.0.0,但沒有與紅寶石1.9.3錯誤。從谷歌上的其他頁面看起來,rvm安裝看起來可能是責怪。嘗試'rvm get head && rvm重新安裝所有' – earlonrails 2013-08-07 22:33:18

相關問題