在vagrant-vmware-workstation安装上找不到gem错误

时间:2015-10-09 21:21:28

标签: ruby-on-rails ruby vmware-workstation

我正在尝试在我的机器上安装vagrant -vmware工作站。但我收到了以下错误

Could not find gem 'c:/Users/Automation1/Downloads/license.lic (>= 0) x86-mingw32' in any of the gem sources listed in your Gemfile or available on this machine.

我尝试使用版本2.2.0,2.2.1,2.2.2和2.2.3但总是得到相同的错误

这是完整的安装日志文本

Installing the 'vagrant-vmware-workstation' plugin. This can take a few minutes...
Installed the plugin 'vagrant-vmware-workstation (4.0.1)'!
Installing the 'c:/Users/Automation1/Downloads/license.lic' plugin. This can take a few minutes...
Bundler, the underlying system Vagrant uses to install plugins,
reported an error. The error is shown below. These errors are usually
caused by misconfigured plugin installations or transient network
issues. The error from Bundler is:

Could not find gem 'c:/Users/Automation1/Downloads/license.lic (>= 0) x86-mingw32' in any of the gem sources listed in your Gemfile or available on this machine.

Warning: this Gemfile contains multiple primary sources. Using `source` more
than once without a block is a security risk, and may result in installing unexpected gems. To resolve this warning, use a block to indicate which gems should come
 from the secondary source. To upgrade this warning to an error, run `bundle config disable_multisource true`.Warning: this Gemfile contains multiple primary sources. Using `source` more than once without a block is a security risk, and may
 result in installing unexpected gems. To resolve this warning, use a block to indicate which gems should come from the
secondary source. To upgrade this warning to an error, run `bundle config disable_multisource true`.

有人可以提出解决方案吗? 谢谢你的帮助:))

1 个答案:

答案 0 :(得分:2)

你是否正在使用正确的命令。

我遇到与以下命令相同的问题

vagrant plugin install vagrant-vmware-workstation path/to/license.lic

但它适用于:

vagrant plugin license vagrant-vmware-workstation path/to/license.lic