2016-12-04 96 views
2

我想安装aws插件for vagrant,但得到一个错误。我在macOS Sierra 10.12.1上运行1.9版本。我没有红宝石的专业知识,所以我可以使用您可以提供的所有帮助。
我尝试安装红宝石版本2.3.3,但基于下面的路径vagrant正在使用嵌入式版本。vagrant-aws插件安装错误

vagrant plugin install vagrant-aws 
Installing the 'vagrant-aws' plugin. This can take a few minutes... 
/opt/vagrant/embedded/lib/ruby/2.2.0/rubygems/dependency.rb:315:in `to_specs': Could not find 'fog-xml' (>= 0) among 45 total gem(s) (Gem::LoadError) 
Checked in 'GEM_PATH=/opt/vagrant/embedded/gems', execute `gem env` for more information 
    from /opt/vagrant/embedded/lib/ruby/2.2.0/rubygems/specification.rb:1311:in `block in activate_dependencies' 
    from /opt/vagrant/embedded/lib/ruby/2.2.0/rubygems/specification.rb:1300:in `each' 
    from /opt/vagrant/embedded/lib/ruby/2.2.0/rubygems/specification.rb:1300:in `activate_dependencies' 
    from /opt/vagrant/embedded/lib/ruby/2.2.0/rubygems/specification.rb:1282:in `activate' 
    from /opt/vagrant/embedded/gems/gems/vagrant-1.9.0/lib/vagrant/bundler.rb:319:in `block in activate_solution' 
    from /opt/vagrant/embedded/gems/gems/vagrant-1.9.0/lib/vagrant/bundler.rb:316:in `each' 
    from /opt/vagrant/embedded/gems/gems/vagrant-1.9.0/lib/vagrant/bundler.rb:316:in `activate_solution' 
    from /opt/vagrant/embedded/gems/gems/vagrant-1.9.0/lib/vagrant/bundler.rb:244:in `internal_install' 
    from /opt/vagrant/embedded/gems/gems/vagrant-1.9.0/lib/vagrant/bundler.rb:97:in `install' 
    from /opt/vagrant/embedded/gems/gems/vagrant-1.9.0/lib/vagrant/plugin/manager.rb:62:in `block in install_plugin' 
    from /opt/vagrant/embedded/gems/gems/vagrant-1.9.0/lib/vagrant/plugin/manager.rb:72:in `call' 
    from /opt/vagrant/embedded/gems/gems/vagrant-1.9.0/lib/vagrant/plugin/manager.rb:72:in `install_plugin' 
    from /opt/vagrant/embedded/gems/gems/vagrant-1.9.0/plugins/commands/plugin/action/install_gem.rb:37:in `call' 
    from /opt/vagrant/embedded/gems/gems/vagrant-1.9.0/lib/vagrant/action/warden.rb:34:in `call' 
    from /opt/vagrant/embedded/gems/gems/vagrant-1.9.0/lib/vagrant/action/builder.rb:116:in `call' 
    from /opt/vagrant/embedded/gems/gems/vagrant-1.9.0/lib/vagrant/action/runner.rb:66:in `block in run' 
    from /opt/vagrant/embedded/gems/gems/vagrant-1.9.0/lib/vagrant/util/busy.rb:19:in `busy' 
    from /opt/vagrant/embedded/gems/gems/vagrant-1.9.0/lib/vagrant/action/runner.rb:66:in `run' 
    from /opt/vagrant/embedded/gems/gems/vagrant-1.9.0/plugins/commands/plugin/command/base.rb:14:in `action' 
    from /opt/vagrant/embedded/gems/gems/vagrant-1.9.0/plugins/commands/plugin/command/install.rb:32:in `block in execute' 
    from /opt/vagrant/embedded/gems/gems/vagrant-1.9.0/plugins/commands/plugin/command/install.rb:31:in `each' 
    from /opt/vagrant/embedded/gems/gems/vagrant-1.9.0/plugins/commands/plugin/command/install.rb:31:in `execute' 
    from /opt/vagrant/embedded/gems/gems/vagrant-1.9.0/plugins/commands/plugin/command/root.rb:66:in `execute' 
    from /opt/vagrant/embedded/gems/gems/vagrant-1.9.0/lib/vagrant/cli.rb:42:in `execute' 
    from /opt/vagrant/embedded/gems/gems/vagrant-1.9.0/lib/vagrant/environment.rb:308:in `cli' 
    from /opt/vagrant/embedded/gems/gems/vagrant-1.9.0/bin/vagrant:123:in `<main>' 

回答

2

这似乎是在Vagrant 1.9.1中修复的,因为我也有与vagrant-rackspace插件相同的问题,但现在安装正常。

+0

我确认。升级到游民1.9.1解决了我的问题。谢谢! – user3137124

+0

在OSX上,这是'酿酒桶重新安装流浪汉'。木桶没有“升级”。 –

1

我在当前的Arch Linux上有完全相同的问题。我还会补充说,即使我:

vagrant plugin install fog-xml 
Installing the 'fog-xml' plugin. This can take a few minutes... 
Installed the plugin 'fog-xml (0.1.2)'! 

或者:

`gem install fog-xml` 

我得到同样的错误。

+0

你使用的是Vagrant 1.9吗?你知道如果你以前的版本有这个错误吗? – user3137124

+1

它似乎是无业游民1.9独特的一个问题,我相信这是固定的: https://github.com/mitchellh/vagrant/pull/8079/commits/3dccd82a39bfb9929070b043a9144fa20191220d – user2653964