¡Te damos la bienvenida al nuevo sysarmy --help! Para recuperar tu usuario pedí un password reset.

No encuentro que lib falta para que instale....

editado September 2020 en General
roberto:~/ $ sudo apt-get build-dep vagrant ruby-libvirt                                                                                                     [19:15:16]
[sudo] password for roberto: 
Reading package lists... Done
E: You must put some 'deb-src' URIs in your sources.list
roberto:~/ $ vagrant plugin install vagrant-libvirt                                                                                                          [19:15:25]
Installing the 'vagrant-libvirt' plugin. This can take a few minutes...
Building native extensions. This could take a while...
Building native extensions. This could take a while...
Vagrant failed to properly resolve required dependencies. These
errors can commonly be caused by misconfigured plugin installations
or transient network issues. The reported error is:

ERROR: Failed to build gem native extension.

   current directory: /home/roberto/.vagrant.d/gems/2.6.2/gems/ruby-libvirt-0.7.1/ext/libvirt
/tmp/.mount_vagran03mckN/usr/bin/ruby2.6 -I /tmp/.mount_vagran03mckN/usr/lib/ruby/2.6.0 -r ./siteconf20200914-88629-l1o6e9.rb extconf.rb
*** 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=/tmp/.mount_vagran03mckN/usr/bin/$(RUBY_BASE_NAME)2.6
   --with-libvirt-include
   --without-libvirt-include
   --with-libvirt-lib
   --without-libvirt-lib
   --with-libvirt-config
   --without-libvirt-config
   --with-pkg-config
   --without-pkg-config
extconf.rb:73:in `<main>': libvirt library not found in default locations (RuntimeError)

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

 /home/roberto/.vagrant.d/gems/2.6.2/extensions/x86_64-linux/2.6.0/ruby-libvirt-0.7.1/mkmf.log

extconf failed, exit code 1

Gem files will remain installed in /home/roberto/.vagrant.d/gems/2.6.2/gems/ruby-libvirt-0.7.1 for inspection.
Results logged to /home/roberto/.vagrant.d/gems/2.6.2/extensions/x86_64-linux/2.6.0/ruby-libvirt-0.7.1/gem_make.out


Etiquetado:

Respuestas

  • sudo apt-get -y install libvirt-dev
    

    ?

  • Ya la habia instalado y sigue con el mismo error!!!

  • Ubuntu 20.04

  • editado September 2020

    Tenes la distro con lo ultimo? mira que salió una 20.04.1

    En mi caso yo tenia vagrant de versiones anteriores, y al hacer upgrade a 20.04 empezó a tirar errores de Ruby a lo pavote, aunque igual me andaba, capaz por tenerlo de antes.

    Despues de hacer un dist-upgrade todos los errores desaparecieron

  • SIp tengo la ultima....

  • Probe en una virtual y asi por default me pincho pero despues de instalar todo esto:

    apt-get install qemu libvirt-daemon-system libvirt-clients ebtables dnsmasq-base
    apt-get install libxslt-dev libxml2-dev libvirt-dev zlib1g-dev ruby-dev
    

    Me instalo lo mas bien, tenes todas esas?

  • Tengo todas esas dependencias instaladas.... :-(

  • To see why this extension failed to compile, please check the mkmf.log which can be found here:
    
     /home/roberto/.vagrant.d/gems/2.6.2/extensions/x86_64-linux/2.6.0/ruby-libvirt-0.7.1/mkmf.log
    

    Tirate ese file a un pastebin

  • roberto:debs/ $ cat /home/roberto/.vagrant.d/gems/2.6.2/extensions/x86_64-linux/2.6.0/ruby-libvirt-0.7.1/mkmf.log                                             [23:28:38]
    
    "pkg-config --exists libvirt"
    package configuration for libvirt is not found
    
    
  • si probas libvirtd con virsh o virt manager te anda? porque ese pkg-config --exists libvirt es pretty straigth forward.

  • roberto:debs/ $ virsh nodeinfo                                                                                                                                [23:51:46]
    CPU model:           x86_64
    CPU(s):              4
    CPU frequency:       1322 MHz
    CPU socket(s):       1
    Core(s) per socket:  2
    Thread(s) per core:  2
    NUMA cell(s):        1
    Memory size:         8087228 KiB
    
    
    
  • y si tiras esto con un -vv o algo mas de debug

    "pkg-config --exists libvirt"
    

    ?

Accede o Regístrate para comentar.