1. vanguard2:~ # vagrant plugin install vagrant-libvirt
  2. Installing the 'vagrant-libvirt' plugin. This can take a few minutes...
  3. Building native extensions. This could take a while...
  4. Bundler, the underlying system Vagrant uses to install plugins,
  5. reported an error. The error is shown below. These errors are usually
  6. caused by misconfigured plugin installations or transient network
  7. issues. The error from Bundler is:
  8. ERROR: Failed to build gem native extension.
  9. current directory: /root/.vagrant.d/gems/2.4.3/gems/nokogiri-1.8.2/ext/nokogiri
  10. /opt/vagrant/embedded/bin/ruby -r ./siteconf20180409-13033-1nzgzvj.rb extconf.rb
  11. checking if the C compiler accepts ... *** extconf.rb failed ***
  12. Could not create Makefile due to some reason, probably lack of necessary
  13. libraries and/or headers. Check the mkmf.log file for more details. You may
  14. need configuration options.
  15. Provided configuration options:
  16. --with-opt-dir
  17. --with-opt-include
  18. --without-opt-include=${opt-dir}/include
  19. --with-opt-lib
  20. --without-opt-lib=${opt-dir}/lib
  21. --with-make-prog
  22. --without-make-prog
  23. --srcdir=.
  24. --curdir
  25. --ruby=/opt/vagrant/embedded/bin/$(RUBY_BASE_NAME)
  26. --help
  27. --clean
  28. /opt/vagrant/embedded/lib/ruby/2.4.0/mkmf.rb:457:in `try_do': The compiler failed to generate an executable file. (RuntimeError)
  29. You have to install development tools first.
  30. from /opt/vagrant/embedded/lib/ruby/2.4.0/mkmf.rb:572:in `block in try_compile'
  31. from /opt/vagrant/embedded/lib/ruby/2.4.0/mkmf.rb:523:in `with_werror'
  32. from /opt/vagrant/embedded/lib/ruby/2.4.0/mkmf.rb:572:in `try_compile'
  33. from extconf.rb:138:in `nokogiri_try_compile'
  34. from extconf.rb:162:in `block in add_cflags'
  35. from /opt/vagrant/embedded/lib/ruby/2.4.0/mkmf.rb:630:in `with_cflags'
  36. from extconf.rb:161:in `add_cflags'
  37. from extconf.rb:410:in `<main>'
  38. To see why this extension failed to compile, please check the mkmf.log which can be found here:
  39. /root/.vagrant.d/gems/2.4.3/extensions/x86_64-linux/2.4.0/nokogiri-1.8.2/mkmf.log
  40. extconf failed, exit code 1
  41. Gem files will remain installed in /root/.vagrant.d/gems/2.4.3/gems/nokogiri-1.8.2 for inspection.
  42. Results logged to /root/.vagrant.d/gems/2.4.3/extensions/x86_64-linux/2.4.0/nokogiri-1.8.2/gem_make.out