3

我在 Gemfile 中有这一行:

gem "acts_as_versioned", :git => 'https://github.com/rtacconi/acts_as_versioned.git'

在两台服务器上捆绑安装在部署模式下工作,但在一台服务器上我得到这个:

  * executing "cd /path_to_app/releases/20130705120639 && bundle install --gemfile /path_to_app/releases/20130705120639/Gemfile --path /path_to_app/shared/bundle --deployment --quiet --without development test"
    servers: ["173.255.196.228"]
    [173.255.196.228] executing command
 ** [out :: 173.255.196.228] Unpacking objects:   8% (1/12)
 ** [out :: 173.255.196.228] Unpacking objects:  16% (2/12)
 ** [out :: 173.255.196.228] Unpacking objects:  25% (3/12)
 ** [out :: 173.255.196.228] Unpacking objects:  33% (4/12)
 ** [out :: 173.255.196.228] Unpacking objects:  41% (5/12)
 ** [out :: 173.255.196.228] Unpacking objects:  50% (6/12)
 ** [out :: 173.255.196.228] Unpacking objects:  58% (7/12)
 ** [out :: 173.255.196.228] Unpacking objects:  66% (8/12)
 ** [out :: 173.255.196.228] Unpacking objects:  75% (9/12)
 ** [out :: 173.255.196.228] Unpacking objects:  83% (10/12)
 ** [out :: 173.255.196.228] Unpacking objects:  91% (11/12)
Unpacking objects: 100% (12/12), done. objects: 100% (12/12)   
 ** [out :: 173.255.196.228] ArgumentError: wrong number of arguments (1 for 3)
 ** [out :: 173.255.196.228] An error occurred while installing acts_as_versioned (0.6.1), and Bundler cannot
 ** [out :: 173.255.196.228] continue.
 ** [out :: 173.255.196.228] Make sure that `gem install acts_as_versioned -v '0.6.1'` succeeds before
 ** [out :: 173.255.196.228] bundling.
4

1 回答 1

0

尝试将捆绑器放到原始状态:

gem pristine bundler

除此之外,我也会尝试gem update bundler

于 2013-07-05T15:37:16.967 回答