2014-06-05 59 views
1

我的團隊的項目需要我使用vagrant-berkshelf插件,特別是版本1.3.7。團隊中的其他人正在運行Vagrant 1.3.5,儘管我已經嘗試在1.2.7,1.3.5和1.4.3上進行安裝,所有這些都有相同的錯誤。無法安裝流浪者berkshelf插件版本1.3.7與任何版本的流浪者

輸出上安裝:

[email protected]:~$ vagrant plugin install vagrant-berkshelf --plugin-version 1.3.7 
Installing the 'vagrant-berkshelf --version '1.3.7'' plugin. This can take a few minutes... 
/opt/vagrant/embedded/lib/ruby/2.0.0/rubygems/dependency_installer.rb:211:in `gather_dependencies': Unable to resolve dependencies: ridley requires buff-extensions (~> 0.3); buff-config requires buff-extensions (~> 0.3); varia_model requires buff-extensions (~> 1.0) (Gem::DependencyError) 
    from /opt/vagrant/embedded/lib/ruby/2.0.0/rubygems/dependency_installer.rb:333:in `install' 
    from /opt/vagrant/embedded/gems/gems/vagrant-1.4.3/plugins/commands/plugin/action/install_gem.rb:65:in `block in call' 
    from /opt/vagrant/embedded/gems/gems/vagrant-1.4.3/plugins/commands/plugin/gem_helper.rb:42:in `block in with_environment' 
    from /opt/vagrant/embedded/lib/ruby/2.0.0/rubygems/user_interaction.rb:40:in `use_ui' 
    from /opt/vagrant/embedded/gems/gems/vagrant-1.4.3/plugins/commands/plugin/gem_helper.rb:41:in `with_environment' 
    from /opt/vagrant/embedded/gems/gems/vagrant-1.4.3/plugins/commands/plugin/action/install_gem.rb:52:in `call' 
    from /opt/vagrant/embedded/gems/gems/vagrant-1.4.3/lib/vagrant/action/warden.rb:34:in `call' 
    from /opt/vagrant/embedded/gems/gems/vagrant-1.4.3/plugins/commands/plugin/action/bundler_check.rb:20:in `call' 
    from /opt/vagrant/embedded/gems/gems/vagrant-1.4.3/lib/vagrant/action/warden.rb:34:in `call' 
    from /opt/vagrant/embedded/gems/gems/vagrant-1.4.3/lib/vagrant/action/builder.rb:116:in `call' 
    from /opt/vagrant/embedded/gems/gems/vagrant-1.4.3/lib/vagrant/action/runner.rb:69:in `block in run' 
    from /opt/vagrant/embedded/gems/gems/vagrant-1.4.3/lib/vagrant/util/busy.rb:19:in `busy' 
    from /opt/vagrant/embedded/gems/gems/vagrant-1.4.3/lib/vagrant/action/runner.rb:69:in `run' 
    from /opt/vagrant/embedded/gems/gems/vagrant-1.4.3/plugins/commands/plugin/command/base.rb:17:in `action' 
    from /opt/vagrant/embedded/gems/gems/vagrant-1.4.3/plugins/commands/plugin/command/install.rb:27:in `execute' 
    from /opt/vagrant/embedded/gems/gems/vagrant-1.4.3/plugins/commands/plugin/command/root.rb:56:in `execute' 
    from /opt/vagrant/embedded/gems/gems/vagrant-1.4.3/lib/vagrant/cli.rb:38:in `execute' 
    from /opt/vagrant/embedded/gems/gems/vagrant-1.4.3/lib/vagrant/environment.rb:484:in `cli' 
    from /opt/vagrant/embedded/gems/gems/vagrant-1.4.3/bin/vagrant:127:in `<top (required)>' 
    from /opt/vagrant/bin/../embedded/gems/bin/vagrant:23:in `load' 
    from /opt/vagrant/bin/../embedded/gems/bin/vagrant:23:in `<main>' 

的依賴問題與雷德利,淺黃色的擴展和拋光輪配置。我目前正在使用RVM和Ruby 1.9.3-p448,並且一個gem列表顯示我應該滿足這些依賴關係。如果我嘗試安裝vagrant-berkshelf插件的一個版本,我會得到一個不同的依賴項問題列表(但這是一個有爭議的問題,因爲我需要在1.3.7上)。

任何想法?

回答

5

我能夠通過安裝所需的寶石來得到這個工作:

env GEM_HOME=~/.vagrant.d/gems gem install buff-extensions -v 0.3.0 
env GEM_HOME=~/.vagrant.d/gems gem install buff-extensions -v 1.0.0 
vagrant plugin install vagrant-berkshelf --plugin-version 1.3.7 

我還沒有完成我的測試,所以我不能確定是否會有運行時發生衝突。

---編輯---

如果你做到以上,插件無法加載。
相反,請確保安裝舊版本的varia_model寶石。我建議0.3.2。這個寶石不需要更高版本buff-extensions

env GEM_HOME=~/.vagrant.d/gems gem install varia_model -v 0.3.2 
vagrant plugin install vagrant-berkshelf --plugin-version 1.3.7