2015-11-03 26 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)代理