【问题标题】:failed to install vagrant-cachier plugin on windows无法在 Windows 上安装 vagrant-cachier 插件
【发布时间】:2020-01-02 23:29:10
【问题描述】:

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

我对@9​​87654325@和gem知之甚少。在安装插件之前还有什么需要安装的吗?
或者可能是网络问题? (我在家里和办公室都试过,同样的错误)
vagrant 工作正常,我可以正常初始化、启动和 ssh。

【问题讨论】:

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


    【解决方案1】:

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

    1. 检查您的 vagrant 安装中的宝石在哪里(例如 %vagrant_home%/embedded/gems/gems
    2. 使用命令gem environment 检查您的gem 配置并查找名为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

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

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

    【讨论】:

      【解决方案2】:

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

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

      【讨论】:

        猜你喜欢
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 2015-07-25
        • 2017-10-22
        • 2014-04-20
        • 2019-02-08
        相关资源
        最近更新 更多