0

我是新手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)  

ruby我对此知之甚少gem。在安装插件之前是否需要安装其他任何东西?
或者可能是网络问题?(我在家里和办公室都试过,同样的错误)
vagrant 工作正常,我可以正常启动、启动和 ssh。

4

2 回答 2

0

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

  1. 检查您的流浪安装中的宝石在哪里(例如%vagrant_home%/embedded/gems/gems
  2. 使用命令检查您的 gem 配置gem environment并查找名为 GEM PATHS 的部分(如果 gem 不在您的路径中,请在 vagrant 安装文件夹下查找它,例如%vagrant_home%/embedded/bin
  3. 如果点 1 的路径不存在于点 2 的部分中,则将其包含在命令中export GEM_HOME=/path/to/gems/folder(例如export GEM_HOME=%vagrant_home%/embedded/gems/gems

PS%vagrant_home%指的是 vagrant 安装基础文件夹,在 windows 下使用 set 而不是 export ...如果我混合了 unix 和 windows 语法,请见谅

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

于 2016-04-07T14:03:05.410 回答
0

我安装了这个插件https://github.com/winnfsd/vagrant-winnfsd现在 Vagrant Cachier 在 Windows 10 上就像一个魅力。

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

于 2020-01-02T15:29:10.223 回答