如何在没有互联网连接的Windows 7上安装vagrant插件?

时间:2017-05-29 13:07:28

标签: ruby rubygems vagrant vagrant-plugin

我试图在没有互联网连接的Windows 7上安装vagrant-hostmanager插件。

我从rubygems.org下载了gem文件,并将此文件复制到D:\ distr \ Vagrant。

然后我移动到此文件夹并使用Ruby(具有管理员权限)在命令提示符下运行:

vagrant plugin install vagrant-hostmanager --entry-point vagrant-hostmanager-1.8.6.gem

并收到以下错误:

Installing the 'vagrant-hostmanager' plugin. This can take a few minutes...
Vagrant failed to load a configured plugin source. This can be caused
by a variety of issues including: transient connectivity issues, proxy
filtering rejecting access to a configured plugin source, or a configured
plugin source not responding correctly. Please review the error message
below to help resolve the issue:

  Errno::ECONNREFUSED: No connection could be made because the target machine ac
tively refused it. - connect(2) for "api.rubygems.org" port 443 (https://api.rub
ygems.org/specs.4.8.gz)

Source: https://rubygems.org/

我也将specs.4.8.gz放到他的文件夹中,但它没有帮助。我还将specs.4.8放到SPEC CACHE DIRECTORY和gem文件到gem环境中定义的GEM PATHS。它也没有帮助。

版本:

  • Windows Enterprise Service Pack 1(32位)

  • vagrant_1.9.5.msi

  • 的VirtualBox-5.1.22-115126-win.exe后

  • ruby​​gems 2.5.2

  • ruby​​installer 2.3.3(2016-11-21 patchlevel 222)[i386-mingw32]

我还试过了另一个版本的vagrant和gem:vagrant_1.8.4.msi和vagrant-hostmanager-1.8.5.gem。结果是一样的。

是否可以离线安装vagrant插件?

谢谢!

0 个答案:

没有答案