Vagrant on windows error 'cannot load such a file' nokogiri

I am trying to run a command vagrant upto create a window on AWS. A stray file is already running on my Mac, now I'm trying to start Windows. I just installed the latest version of Vagrant for Windows (1.8.1) and installed the AWS plugin.

When I run vagrant up, I get the following output

C: /HashiCorp/Vagrant/embedded/gems/gems/nokogiri-1.6.3.1-x86-mingw32/lib/nokogiri.rb: 29: in require ': unable to load such a file - nokogiri / nokogiri (Error loading) from C: /HashiCorp/Vagrant/embedded/gems/gems/nokogiri-1.6.3.1-x86-mingw32/lib/nokogiri.rb: 29: in salvation in 'from C: /HashiCorp/Vagrant/embedded/gems/gems/nokogiri-1.6 .3.1-x86-mingw32 / lib / nokogiri.rb: 25: in 'by C: /Users/renato.mintz/.vagrant.d/gems/gems/fog-xml-0.1.2/lib/fog/xml. rb: 2: in require "from C: /Users/renato.mintz/.vagrant.d/gems/gems/fog-xml-0.1.2/lib/fog/xml.rb: 2: in` from C: /Users/renato.mintz/.vagrant.d/gems/gems/fog-1.37.0/lib/fog.rb: 13: in require "from C: /Users/renato.mintz/.vagrant.d/gems/ gems / fog-1.37.0 / lib / fog.rb: 13: in 'from C: /Users/renato.mintz/.vagrant.d/gems/gems/vagrant-aws-0.7.0 / lib / vagrant-aws / action / connect_aws.rb: 1: in require "from C: /Users/renato.mintz/.vagrant.d/gems/gems/vagrant-aws-0.7.0/lib/vagrant- aws / action / connect_aws.rb: 1: in 'from C: /Users/renato.mintz/.vagrant.d/gems/gems/vagrant-aws-0.7.0/lib/vagrant-aws/action.rb: 97 : in block in action_read_state '...

and he continues ...

I found a few posts about nokogirithat do not work on ruby ​​for Windows 2.2, but I'm not sure if this has not yet been fixed.

Can I find out how to fix or work around this problem?

+4
source share
2 answers

This is a known issue ( https://github.com/mitchellh/vagrant/issues/6766 ) that is awaiting a fix caused by a vagabond installing a low version of nokogiri.

In the meantime, in C:\HashiCorp\Vagrant\embedded\gems\specifications\vagrant-1.8.1.gemspecyou will find gemspecs with nokogiri problematic links.

Change the nokogiri link in C:\HashiCorp\Vagrant\embedded\gems\specifications\vagrant-1.8.1.gemspecand C:\HashiCorp\Vagrant\embedded\gems\specifications\vagrant.gemspec(if it exists) from <nokogiri>, ["= 1.6.3.1"]to <nokogiri>, [">= 1.6.3.1"](note >=in contrast to =).

, , nokogiri, :

vagrant plugin install nokogiri --plugin-version 1.6.7.1

. , .

+5

:

vagrant plugin install vagrant-share --plugin-version 1.1.8

: https://github.com/mitchellh/vagrant/issues/8519

0

Source: https://habr.com/ru/post/1629163/


All Articles