Solucionado (ver solução)
Solucionado
(ver solução)
4
respostas

Erro ao instalar o plugin do aws no vagrant para Windows

Bom dia !

Estou realizando o curso de Vagrant no Windows 10 .

Realizando o capitulo final do curso preciso instalar o plugin do aws, porem ao realizar o comando:

vagrant plugin install vagrant-aws

Estou recebendo a seguinte saída de erro:

Installing the 'vagrant-aws' plugin. This can take a few minutes...
Building native extensions.  This could take a while...
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:

ERROR: Failed to build gem native extension.

    current directory: C:/Users/rafap/.vagrant.d/gems/2.4.3/gems/ovirt-engine-sdk-4.2.3/ext/ovirtsdk4c
C:/HashiCorp/Vagrant/embedded/mingw64/bin/ruby.exe -r ./siteconf20180412-3488-8xkwbn.rb extconf.rb
checking for xml2-config... no
*** extconf.rb failed ***
Could not create Makefile due to some reason, probably lack of necessary
libraries and/or headers.  Check the mkmf.log file for more details.  You may
need configuration options.

Provided configuration options:
        --with-opt-dir
        --without-opt-dir
        --with-opt-include
        --without-opt-include=${opt-dir}/include
        --with-opt-lib
        --without-opt-lib=${opt-dir}/lib
        --with-make-prog
        --without-make-prog
        --srcdir=.
        --curdir
        --ruby=C:/HashiCorp/Vagrant/embedded/mingw64/bin/$(RUBY_BASE_NAME)
        --with-libxml2-config
        --without-libxml2-config
        --with-pkg-config
        --without-pkg-config
extconf.rb:29:in `<main>': The "libxml2" package isn't available. (RuntimeError)

To see why this extension failed to compile, please check the mkmf.log which can be found here:

  C:/Users/rafap/.vagrant.d/gems/2.4.3/extensions/x64-mingw32/2.4.0/ovirt-engine-sdk-4.2.3/mkmf.log

extconf failed, exit code 1

Gem files will remain installed in C:/Users/rafap/.vagrant.d/gems/2.4.3/gems/ovirt-engine-sdk-4.2.3 for inspection.
Results logged to C:/Users/rafap/.vagrant.d/gems/2.4.3/extensions/x64-mingw32/2.4.0/ovirt-engine-sdk-4.2.3/gem_make.out

conteudo do arquivo de log mkmf:

find_executable: checking for xml2-config... -------------------- no

--------------------

"pkg-config --exists libxml2"
package configuration for libxml2 is not found

Obrigado desde já.

4 respostas

Oi Rafael, tudo bem? Pelo erro, diz que o seu sistema operacional não possui a biblioteca libxml2 instalada. No Windows normalmente não temos essas coisas do Unix mesmo.

De acordo com o site da lib: http://xmlsoft.org/downloads.html você pode baixar um port dela para o Windows neste outro site: http://www.zlatkovic.com/libxml.en.html

Tenta fazer a instalação dessa lib e tentar executar a instalação do plugin novamente.

Bom dia Wanderson

Executei os procedimentos para a instalação da biblioteca e não obitive exito.

Persistiu no mesmo erro.

Alguma outra dica ?

Já tentei um monte de soluções da internet e até agora nada.

Obrigado.

solução!

Boa noite amigo!

obrigado pela ajuda, porém o procedimento acima não funcionou.

Dando uma olhada nos issues do git desse plugin encontrei a seguinte solução.

https://github.com/mitchellh/vagrant-aws/issues/510

apos realizar a instalação da versão 1.43 do plugin fog-core a instalação do plugin da aws correu normal.

Obrigado pela ajuda.

Fala Rafael, desculpa a demora amigo! Falha minha.

Fico feliz em ver que você encontrou a solução. Vou ficar atento pra caso aconteça com mais alguém, obrigado por compartilhar a solução aqui com a gente.

Bons estudos! Abraço