Hallo zusammen
Ich möchte mich gern in Ansible einlesen und möchte zum testen Vagrant mit dem KVM Provider nutzen.
Nachdem ich das offizielle Vagrant-RPM installiert habe muss ich nun das libvirt provider installieren, was allerdings immer fehlschlägt.
vagrant plugin install vagrant-libvirt
Installing the 'vagrant-libvirt' plugin. This can take a few minutes...
Fetching: excon-0.62.0.gem (100%)
Fetching: formatador-0.2.5.gem (100%)
Fetching: fog-core-1.43.0.gem (100%)
Fetching: fog-json-1.2.0.gem (100%)
Fetching: mini_portile2-2.3.0.gem (100%)
Fetching: nokogiri-1.8.4.gem (100%)
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: /home/marc/.vagrant.d/gems/2.4.4/gems/nokogiri-1.8.4/ext/nokogiri
/opt/vagrant/embedded/bin/ruby -r ./siteconf20180714-7439-1nlz3j6.rb extconf.rb
checking if the C compiler accepts ... *** 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
--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=/opt/vagrant/embedded/bin/$(RUBY_BASE_NAME)
--help
--clean
/opt/vagrant/embedded/lib/ruby/2.4.0/mkmf.rb:457:in `try_do': The compiler failed to generate an executable file. (RuntimeError)
You have to install development tools first.
from /opt/vagrant/embedded/lib/ruby/2.4.0/mkmf.rb:572:in `block in try_compile'
from /opt/vagrant/embedded/lib/ruby/2.4.0/mkmf.rb:523:in `with_werror'
from /opt/vagrant/embedded/lib/ruby/2.4.0/mkmf.rb:572:in `try_compile'
from extconf.rb:138:in `nokogiri_try_compile'
from extconf.rb:162:in `block in add_cflags'
from /opt/vagrant/embedded/lib/ruby/2.4.0/mkmf.rb:630:in `with_cflags'
from extconf.rb:161:in `add_cflags'
from extconf.rb:410:in `<main>'
To see why this extension failed to compile, please check the mkmf.log which can be found here:
/home/marc/.vagrant.d/gems/2.4.4/extensions/x86_64-linux/2.4.0/nokogiri-1.8.4/mkmf.log
extconf failed, exit code 1
Alles anzeigen
Ich vermute dass hier ein Problem mit den Ruby-Dependencies vorliegt. So wie es scheint nutzt Vagrant Ruby 2.4, Leap 15 bringt aber bereits 2.5 mit.
Eine andere Vermutung ist, dass mir ein paar Devel-Pakete fehlen, da diese nokogiri-ruby-lib anscheinend irgendwelche C-Bindings nutzt. Allerdings hat es auch nichts geholfen das Entwickler-Pattern zu installieren.
Es gab zu diesem Fehler bereits Issues im Vagrant-Repo, allerdings relativ alt zu Version 1.6 und die dort beschriebenen Workarounds funktionieren mit Leap 15 nicht.
Meine Hoffnung ist dass in dieser Community jemand Vagrant nutzt und das Problem lösen konnte