2015-11-03 52 views
0

我是vagrant的新手。未能在windows上安装vagrant-cachier插件

我已经安装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工作正常,我可以初始化,正常和ssh。

回答

0

我遇到了同样的问题,发现它是一个宝石文件夹错误配置的问题。 我用下面的步骤来解决它:

  1. 检查哪里是你的无业游民安装里面的宝石(如%vagrant_home%/embedded/gems/gems
  2. 与命令gem environment并寻找部分名为创业板PATHS检查你的宝石配置(如果宝石是不是在你路径寻找它的流浪安装文件夹下,例如%vagrant_home%/embedded/bin
  3. 如果在点1的路径不是在点2的部分内时,它包括与所述命令export GEM_HOME=/path/to/gems/folder(例如export GEM_HOME=%vagrant_home%/embedded/gems/gems

P.S. %vagrant_home%是指vagrant安装基础文件夹,使用set而不是导出在windows下...并且对不起,如果我混合unix和windows语法

测试环境:Vagrant 1.8.1(gem 2.4.5.1)代理