无法在Windows上安装vagrant-cachier插件

时间:2015-11-03 02:04:17

标签: vagrant vagrant-windows vagrant-plugin vagrant-cachier

我是vagrant的新手。

我已经安装了virtualbox和vagrant(1.7.4),然后按照书籍类型

$> vagrant plugin install vagrant-cachier

几分钟后,它报告错误:

> vagrant plugin install vagrant-cachier
Installing the 'vagrant-cachier' 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:

An error occurred while installing childprocess (0.5.7), and Bundler cannot continue.
Make sure that `gem install childprocess -v '0.5.7'` succeeds before bundling.

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`.Gem::RemoteFetcher::FetchError: SSL_connect SYSCALL returned=5 errno=0 state=SSLv3 read server session ticket A (https://rubygems.org/gems/childprocess-0.5.7.gem)  

我对rubygem知之甚少。在安装插件之前还有其他什么需要安装吗?
或者也许是网络问题? (我在家里和办公室试过,同样的错误)
vagrant工作正常,我可以正常启动,正常运行。

2 个答案:

答案 0 :(得分:0)

我遇到了同样的问题,发现这是gems文件夹配置错误的问题。 我通过以下步骤解决了这个问题:

  1. 检查您的流浪汉装置中的宝石在哪里(例如%vagrant_home%/embedded/gems/gems
  2. 使用命令gem environment检查您的gem配置,并查找名为GEM PATHS的部分(如果gem不在您的路径中,请在vagrant安装文件夹下查找,例如%vagrant_home%/embedded/bin
  3. 如果第2点的部分中不存在第1点的路径,请将其包含在命令export GEM_HOME=/path/to/gems/folder中(例如export GEM_HOME=%vagrant_home%/embedded/gems/gems
  4. P.S。 %vagrant_home%指的是vagrant安装基础文件夹,在windows下使用set而不是export ...如果我混合了unix和windows语法,那就很抱歉

    测试环境:Windows 7后面的Web代理上的Vagrant 1.8.1(gem 2.4.5.1)

答案 1 :(得分:0)

我安装了此插件https://github.com/winnfsd/vagrant-winnfsd,现在Vagrant Cachier在Windows 10上像超级按钮一样工作。

要在Ubuntu上运行它,只需安装nfs-server https://stackoverflow.com/a/52361432/1679541