在windows上安装流浪者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知之甚少。在安装插件之前,还有什么需要安装的吗
或者可能是网络问题?(我在家里和办公室都试过了,同样的错误)
流浪者工作得很好,我可以正常初始化、启动和ssh。

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

  1. 检查流浪者装置中的宝石在哪里(例如%vagrant_home%/embedded/gems/gems
  2. 使用命令gem environment检查您的gem配置,并查找名为gem PATHS的部分(如果gem不在您的路径中,请在流浪安装文件夹下查找,例如%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%是指流浪者安装的基本文件夹,在windows下使用set而不是导出。。。很抱歉,如果我混合了unix和windows语法

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

我安装了这个插件https://github.com/winnfsd/vagrant-winnfsd现在,《流浪者》在Windows10上就像一个符咒。

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

最新更新