Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

*** extconf.rb failed *** #14

Closed
Akendo opened this issue Jun 10, 2013 · 12 comments
Closed

*** extconf.rb failed *** #14

Akendo opened this issue Jun 10, 2013 · 12 comments

Comments

@Akendo
Copy link

Akendo commented Jun 10, 2013

I do have following issue:

  vagrant plugin install vagrant-kvm
  Installing the 'vagrant-kvm' plugin. This can take a few minutes...
  /opt/vagrant/embedded/lib/ruby/1.9.1/rubygems/installer.rb:562:in `rescue in block in build_extensions': ERROR: Failed to build gem native extension. (Gem::Installer::ExtensionBuildError)

          /opt/vagrant/embedded/bin/ruby extconf.rb
  checking for virNetworkPtr in libvirt/libvirt.h... *** 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
        --with-libvirt-include
        --without-libvirt-include
        --with-libvirt-lib
        --without-libvirt-lib
        --with-libvirt-config
        --without-libvirt-config
        --with-pkg-config
        --without-pkg-config
  /opt/vagrant/embedded/lib/ruby/1.9.1/mkmf.rb:381: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/1.9.1/mkmf.rb:491:in `block in try_compile'
        from /opt/vagrant/embedded/lib/ruby/1.9.1/mkmf.rb:443:in `with_werror'
        from /opt/vagrant/embedded/lib/ruby/1.9.1/mkmf.rb:491:in `try_compile'
        from /opt/vagrant/embedded/lib/ruby/1.9.1/mkmf.rb:1022:in `try_type'
        from /opt/vagrant/embedded/lib/ruby/1.9.1/mkmf.rb:1050:in `block in have_type'
        from /opt/vagrant/embedded/lib/ruby/1.9.1/mkmf.rb:790:in `block in checking_for'
        from /opt/vagrant/embedded/lib/ruby/1.9.1/mkmf.rb:284:in `block (2 levels) in postpone'
        from /opt/vagrant/embedded/lib/ruby/1.9.1/mkmf.rb:254:in `open'
        from /opt/vagrant/embedded/lib/ruby/1.9.1/mkmf.rb:284:in `block in postpone'
        from /opt/vagrant/embedded/lib/ruby/1.9.1/mkmf.rb:254:in `open'
        from /opt/vagrant/embedded/lib/ruby/1.9.1/mkmf.rb:280:in `postpone'
        from /opt/vagrant/embedded/lib/ruby/1.9.1/mkmf.rb:789:in `checking_for'
        from /opt/vagrant/embedded/lib/ruby/1.9.1/mkmf.rb:1049:in `have_type'
        from extconf.rb:10:in `block in have_libvirt_types'
        from extconf.rb:10:in `each'
        from extconf.rb:10:in `have_libvirt_types'
        from extconf.rb:211:in `<main>'

  Gem files will remain installed in /home/jax/.vagrant.d/gems/gems/ruby-libvirt-0.4.0 for inspection.
        Results logged to /home/jax/.vagrant.d/gems/gems/ruby-libvirt-0.4.0/ext/libvirt/gem_make.out
              from /opt/vagrant/embedded/lib/ruby/1.9.1/rubygems/installer.rb:540:in `block in build_extensions'
              from /opt/vagrant/embedded/lib/ruby/1.9.1/rubygems/installer.rb:515:in `each'
              from /opt/vagrant/embedded/lib/ruby/1.9.1/rubygems/installer.rb:515:in `build_extensions'
              from /opt/vagrant/embedded/lib/ruby/1.9.1/rubygems/installer.rb:180:in `install'
              from /opt/vagrant/embedded/lib/ruby/1.9.1/rubygems/dependency_installer.rb:297:in `block in install'
              from /opt/vagrant/embedded/lib/ruby/1.9.1/rubygems/dependency_installer.rb:270:in `each'
              from /opt/vagrant/embedded/lib/ruby/1.9.1/rubygems/dependency_installer.rb:270:in `each_with_index'
              from /opt/vagrant/embedded/lib/ruby/1.9.1/rubygems/dependency_installer.rb:270:in `install'
              from /opt/vagrant/embedded/gems/gems/vagrant-1.2.2/plugins/commands/plugin/action/install_gem.rb:38:in `block in call'
              from /opt/vagrant/embedded/gems/gems/vagrant-1.2.2/plugins/commands/plugin/gem_helper.rb:42:in `block in with_environment'
              from /opt/vagrant/embedded/lib/ruby/1.9.1/rubygems/user_interaction.rb:40:in `use_ui'
              from /opt/vagrant/embedded/gems/gems/vagrant-1.2.2/plugins/commands/plugin/gem_helper.rb:41:in `with_environment'
              from /opt/vagrant/embedded/gems/gems/vagrant-1.2.2/plugins/commands/plugin/action/install_gem.rb:28:in `call'
              from /opt/vagrant/embedded/gems/gems/vagrant-1.2.2/lib/vagrant/action/warden.rb:34:in `call'
              from /opt/vagrant/embedded/gems/gems/vagrant-1.2.2/plugins/commands/plugin/action/bundler_check.rb:20:in `call'
              from /opt/vagrant/embedded/gems/gems/vagrant-1.2.2/lib/vagrant/action/warden.rb:34:in `call'
              from /opt/vagrant/embedded/gems/gems/vagrant-1.2.2/lib/vagrant/action/builder.rb:116:in `call'
              from /opt/vagrant/embedded/gems/gems/vagrant-1.2.2/lib/vagrant/action/runner.rb:61:in `block in run'
              from /opt/vagrant/embedded/gems/gems/vagrant-1.2.2/lib/vagrant/util/busy.rb:19:in `busy'
              from /opt/vagrant/embedded/gems/gems/vagrant-1.2.2/lib/vagrant/action/runner.rb:61:in `run'
              from /opt/vagrant/embedded/gems/gems/vagrant-1.2.2/plugins/commands/plugin/command/base.rb:17:in `action'
              from /opt/vagrant/embedded/gems/gems/vagrant-1.2.2/plugins/commands/plugin/command/install.rb:44:in `execute'
              from /opt/vagrant/embedded/gems/gems/vagrant-1.2.2/plugins/commands/plugin/command/root.rb:47:in `execute'
              from /opt/vagrant/embedded/gems/gems/vagrant-1.2.2/lib/vagrant/cli.rb:46:in `execute'
              from /opt/vagrant/embedded/gems/gems/vagrant-1.2.2/lib/vagrant/environment.rb:467:in `cli'
              from /opt/vagrant/embedded/gems/gems/vagrant-1.2.2/bin/vagrant:84:in `<top (required)>'
              from /opt/vagrant/bin/../embedded/gems/bin/vagrant:23:in `load'
              from /opt/vagrant/bin/../embedded/gems/bin/vagrant:23:in `<main>'

I serachf or the file:
⮀sudo find / -xdev -name libvirt.h
/usr/include/libvirt/libvirt.h

virNetworkPtr is define inside of the header. ....

any idea?

More info:

vagrant -v
Vagrant version 1.2.2

Linux jax 3.9.5-1-ARCH #1 SMP PREEMPT Sat Jun 8 09:22:45 CEST 2013 x86_64 GNU/Linux

libvirtd --version libvirtd (libvirt) 1.0.6

qemu 1.5.0-4

@adrahon
Copy link
Owner

adrahon commented Jun 10, 2013

Looks like a problem building ruby-libvirt, can you install/build it separately?

@Akendo
Copy link
Author

Akendo commented Jun 10, 2013

I did install ruby-libvirt, but the error remains:

aur/ruby-libvirt 0.4.0-1 [installed] (2)
    Ruby bindings for libvirt.

yaourt -Ql ruby-libvirt 
ruby-libvirt /usr/
ruby-libvirt /usr/lib/
ruby-libvirt /usr/lib/ruby/
ruby-libvirt /usr/lib/ruby/gems/
ruby-libvirt /usr/lib/ruby/gems/2.0.0/
ruby-libvirt /usr/lib/ruby/gems/2.0.0/build_info/
ruby-libvirt /usr/lib/ruby/gems/2.0.0/cache/
ruby-libvirt /usr/lib/ruby/gems/2.0.0/cache/ruby-libvirt-0.4.0.gem
ruby-libvirt /usr/lib/ruby/gems/2.0.0/doc/
ruby-libvirt /usr/lib/ruby/gems/2.0.0/doc/ruby-libvirt-0.4.0/
ruby-libvirt /usr/lib/ruby/gems/2.0.0/doc/ruby-libvirt-0.4.0/ri/
ruby-libvirt /usr/lib/ruby/gems/2.0.0/doc/ruby-libvirt-0.4.0/ri/Libvirt/
ruby-libvirt /usr/lib/ruby/gems/2.0.0/doc/ruby-libvirt-0.4.0/ri/Libvirt/Version/
ruby-libvirt /usr/lib/ruby/gems/2.0.0/doc/ruby-libvirt-0.4.0/ri/Libvirt/Version/cdesc-Version.ri
ruby-libvirt /usr/lib/ruby/gems/2.0.0/doc/ruby-libvirt-0.4.0/ri/Libvirt/Version/major-i.ri
ruby-libvirt /usr/lib/ruby/gems/2.0.0/doc/ruby-libvirt-0.4.0/ri/Libvirt/Version/minor-i.ri
ruby-libvirt /usr/lib/ruby/gems/2.0.0/doc/ruby-libvirt-0.4.0/ri/Libvirt/Version/new-c.ri
ruby-libvirt /usr/lib/ruby/gems/2.0.0/doc/ruby-libvirt-0.4.0/ri/Libvirt/Version/release-i.ri
ruby-libvirt /usr/lib/ruby/gems/2.0.0/doc/ruby-libvirt-0.4.0/ri/Libvirt/Version/to_s-i.ri
ruby-libvirt /usr/lib/ruby/gems/2.0.0/doc/ruby-libvirt-0.4.0/ri/Libvirt/Version/type-i.ri
ruby-libvirt /usr/lib/ruby/gems/2.0.0/doc/ruby-libvirt-0.4.0/ri/Libvirt/Version/version-i.ri
ruby-libvirt /usr/lib/ruby/gems/2.0.0/doc/ruby-libvirt-0.4.0/ri/Libvirt/cdesc-Libvirt.ri
ruby-libvirt /usr/lib/ruby/gems/2.0.0/doc/ruby-libvirt-0.4.0/ri/cache.ri
ruby-libvirt /usr/lib/ruby/gems/2.0.0/gems/
ruby-libvirt /usr/lib/ruby/gems/2.0.0/gems/ruby-libvirt-0.4.0/
ruby-libvirt /usr/lib/ruby/gems/2.0.0/gems/ruby-libvirt-0.4.0/COPYING
ruby-libvirt /usr/lib/ruby/gems/2.0.0/gems/ruby-libvirt-0.4.0/NEWS
ruby-libvirt /usr/lib/ruby/gems/2.0.0/gems/ruby-libvirt-0.4.0/README
ruby-libvirt /usr/lib/ruby/gems/2.0.0/gems/ruby-libvirt-0.4.0/README.rdoc
ruby-libvirt /usr/lib/ruby/gems/2.0.0/gems/ruby-libvirt-0.4.0/Rakefile
ruby-libvirt /usr/lib/ruby/gems/2.0.0/gems/ruby-libvirt-0.4.0/ext/
ruby-libvirt /usr/lib/ruby/gems/2.0.0/gems/ruby-libvirt-0.4.0/ext/libvirt/
ruby-libvirt /usr/lib/ruby/gems/2.0.0/gems/ruby-libvirt-0.4.0/ext/libvirt/.RUBYARCHDIR.time
ruby-libvirt /usr/lib/ruby/gems/2.0.0/gems/ruby-libvirt-0.4.0/ext/libvirt/Makefile
ruby-libvirt /usr/lib/ruby/gems/2.0.0/gems/ruby-libvirt-0.4.0/ext/libvirt/_libvirt.c
ruby-libvirt /usr/lib/ruby/gems/2.0.0/gems/ruby-libvirt-0.4.0/ext/libvirt/_libvirt.o
ruby-libvirt /usr/lib/ruby/gems/2.0.0/gems/ruby-libvirt-0.4.0/ext/libvirt/_libvirt.so
ruby-libvirt /usr/lib/ruby/gems/2.0.0/gems/ruby-libvirt-0.4.0/ext/libvirt/common.c
ruby-libvirt /usr/lib/ruby/gems/2.0.0/gems/ruby-libvirt-0.4.0/ext/libvirt/common.h
ruby-libvirt /usr/lib/ruby/gems/2.0.0/gems/ruby-libvirt-0.4.0/ext/libvirt/common.o
ruby-libvirt /usr/lib/ruby/gems/2.0.0/gems/ruby-libvirt-0.4.0/ext/libvirt/connect.c
ruby-libvirt /usr/lib/ruby/gems/2.0.0/gems/ruby-libvirt-0.4.0/ext/libvirt/connect.h
ruby-libvirt /usr/lib/ruby/gems/2.0.0/gems/ruby-libvirt-0.4.0/ext/libvirt/connect.o
ruby-libvirt /usr/lib/ruby/gems/2.0.0/gems/ruby-libvirt-0.4.0/ext/libvirt/domain.c
ruby-libvirt /usr/lib/ruby/gems/2.0.0/gems/ruby-libvirt-0.4.0/ext/libvirt/domain.h
ruby-libvirt /usr/lib/ruby/gems/2.0.0/gems/ruby-libvirt-0.4.0/ext/libvirt/domain.o
ruby-libvirt /usr/lib/ruby/gems/2.0.0/gems/ruby-libvirt-0.4.0/ext/libvirt/extconf.h
ruby-libvirt /usr/lib/ruby/gems/2.0.0/gems/ruby-libvirt-0.4.0/ext/libvirt/extconf.rb
ruby-libvirt /usr/lib/ruby/gems/2.0.0/gems/ruby-libvirt-0.4.0/ext/libvirt/interface.c
ruby-libvirt /usr/lib/ruby/gems/2.0.0/gems/ruby-libvirt-0.4.0/ext/libvirt/interface.h
ruby-libvirt /usr/lib/ruby/gems/2.0.0/gems/ruby-libvirt-0.4.0/ext/libvirt/interface.o
ruby-libvirt /usr/lib/ruby/gems/2.0.0/gems/ruby-libvirt-0.4.0/ext/libvirt/mkmf.log
ruby-libvirt /usr/lib/ruby/gems/2.0.0/gems/ruby-libvirt-0.4.0/ext/libvirt/network.c
ruby-libvirt /usr/lib/ruby/gems/2.0.0/gems/ruby-libvirt-0.4.0/ext/libvirt/network.h
ruby-libvirt /usr/lib/ruby/gems/2.0.0/gems/ruby-libvirt-0.4.0/ext/libvirt/network.o
ruby-libvirt /usr/lib/ruby/gems/2.0.0/gems/ruby-libvirt-0.4.0/ext/libvirt/nodedevice.c
ruby-libvirt /usr/lib/ruby/gems/2.0.0/gems/ruby-libvirt-0.4.0/ext/libvirt/nodedevice.h
ruby-libvirt /usr/lib/ruby/gems/2.0.0/gems/ruby-libvirt-0.4.0/ext/libvirt/nodedevice.o
ruby-libvirt /usr/lib/ruby/gems/2.0.0/gems/ruby-libvirt-0.4.0/ext/libvirt/nwfilter.c
ruby-libvirt /usr/lib/ruby/gems/2.0.0/gems/ruby-libvirt-0.4.0/ext/libvirt/nwfilter.h
ruby-libvirt /usr/lib/ruby/gems/2.0.0/gems/ruby-libvirt-0.4.0/ext/libvirt/nwfilter.o
ruby-libvirt /usr/lib/ruby/gems/2.0.0/gems/ruby-libvirt-0.4.0/ext/libvirt/secret.c
ruby-libvirt /usr/lib/ruby/gems/2.0.0/gems/ruby-libvirt-0.4.0/ext/libvirt/secret.h
ruby-libvirt /usr/lib/ruby/gems/2.0.0/gems/ruby-libvirt-0.4.0/ext/libvirt/secret.o
ruby-libvirt /usr/lib/ruby/gems/2.0.0/gems/ruby-libvirt-0.4.0/ext/libvirt/siteconf20130610-8851-jw5qgt.rb
ruby-libvirt /usr/lib/ruby/gems/2.0.0/gems/ruby-libvirt-0.4.0/ext/libvirt/storage.c
ruby-libvirt /usr/lib/ruby/gems/2.0.0/gems/ruby-libvirt-0.4.0/ext/libvirt/storage.h
ruby-libvirt /usr/lib/ruby/gems/2.0.0/gems/ruby-libvirt-0.4.0/ext/libvirt/storage.o
ruby-libvirt /usr/lib/ruby/gems/2.0.0/gems/ruby-libvirt-0.4.0/ext/libvirt/stream.c
ruby-libvirt /usr/lib/ruby/gems/2.0.0/gems/ruby-libvirt-0.4.0/ext/libvirt/stream.h
ruby-libvirt /usr/lib/ruby/gems/2.0.0/gems/ruby-libvirt-0.4.0/ext/libvirt/stream.o
ruby-libvirt /usr/lib/ruby/gems/2.0.0/gems/ruby-libvirt-0.4.0/lib/
ruby-libvirt /usr/lib/ruby/gems/2.0.0/gems/ruby-libvirt-0.4.0/lib/_libvirt.so
ruby-libvirt /usr/lib/ruby/gems/2.0.0/gems/ruby-libvirt-0.4.0/lib/libvirt.rb
ruby-libvirt /usr/lib/ruby/gems/2.0.0/gems/ruby-libvirt-0.4.0/tests/
ruby-libvirt /usr/lib/ruby/gems/2.0.0/gems/ruby-libvirt-0.4.0/tests/test_conn.rb
ruby-libvirt /usr/lib/ruby/gems/2.0.0/gems/ruby-libvirt-0.4.0/tests/test_domain.rb
ruby-libvirt /usr/lib/ruby/gems/2.0.0/gems/ruby-libvirt-0.4.0/tests/test_interface.rb
ruby-libvirt /usr/lib/ruby/gems/2.0.0/gems/ruby-libvirt-0.4.0/tests/test_network.rb
ruby-libvirt /usr/lib/ruby/gems/2.0.0/gems/ruby-libvirt-0.4.0/tests/test_nodedevice.rb
ruby-libvirt /usr/lib/ruby/gems/2.0.0/gems/ruby-libvirt-0.4.0/tests/test_nwfilter.rb
ruby-libvirt /usr/lib/ruby/gems/2.0.0/gems/ruby-libvirt-0.4.0/tests/test_open.rb
ruby-libvirt /usr/lib/ruby/gems/2.0.0/gems/ruby-libvirt-0.4.0/tests/test_secret.rb
ruby-libvirt /usr/lib/ruby/gems/2.0.0/gems/ruby-libvirt-0.4.0/tests/test_storage.rb
ruby-libvirt /usr/lib/ruby/gems/2.0.0/gems/ruby-libvirt-0.4.0/tests/test_utils.rb
ruby-libvirt /usr/lib/ruby/gems/2.0.0/specifications/
ruby-libvirt /usr/lib/ruby/gems/2.0.0/specifications/ruby-libvirt-0.4.0.gemspec

@adrahon
Copy link
Owner

adrahon commented Jun 10, 2013

Same error message?
checking for virNetworkPtr in libvirt/libvirt.h... *** extconf.rb failed ***

@Akendo
Copy link
Author

Akendo commented Jun 10, 2013

Yes indeed.

@adrahon
Copy link
Owner

adrahon commented Jun 10, 2013

I'm afraid I'm not really qualified to help, I'm currently trying to understand the issues around gems. Some will be installed by your package manager, some system-wide by the gem command, and some in the local, self-contained Vagrant environment.

It looks like Vagrant need the gems in ~/.vagrant.d/gems/ and there may be some paths it's not aware of when trying to build dependencies. I have to admit I installed ruby-libvirt and nokogiri before installing vagrant-kvm on my system. I need to test these issues some more. Hopefully I'll narrow down the issues.

@Akendo
Copy link
Author

Akendo commented Jun 10, 2013

I just look a bit deeper inside the error messages. It's to be a problem of my Vagrant installation not able to run the ruby-libvirt installation. I guess the ArchLinux guys did manage to have own ruby bin inside the vagrant folder to make it independence of the reset of ruby. That's why it can't access the system wide installed gem. I'll report a bug in Arch.

Before I'm going to try another way of installing it. Maybe that will work.

Thank you for your help.

@adrahon
Copy link
Owner

adrahon commented Jun 10, 2013

Actually, Vagrant now installs a self-contained environment in /opt for all Linux distros, so the issue may impact all distros. Please tell me if you get more info about that, that way you can update the readme for Arch Linux users and it may also help us understand the gem issues.

@Akendo
Copy link
Author

Akendo commented Jun 10, 2013

hm...than it's maybe an issue of the vagrant installation? I'm now getting the error message that Vagrant isn't installed in the right way.

  /usr/lib/ruby/2.0.0/rubygems/uninstaller.rb:106:in `uninstall': gem "bigdecimal" cannot be uninstalled because it is a default gem (Gem::InstallError)
        from /usr/lib/ruby/gems/2.0.0/gems/vagrant-1.2.2/plugins/commands/plugin/action/prune_gems.rb:139:in `block (2 levels) in call'
        from /usr/lib/ruby/2.0.0/set.rb:232:in `each_key'
        from /usr/lib/ruby/2.0.0/set.rb:232:in `each'
        from /usr/lib/ruby/gems/2.0.0/gems/vagrant-1.2.2/plugins/commands/plugin/action/prune_gems.rb:129:in `block in call'
        from /usr/lib/ruby/gems/2.0.0/gems/vagrant-1.2.2/plugins/commands/plugin/gem_helper.rb:42:in `block in with_environment'
        from /usr/lib/ruby/2.0.0/rubygems/user_interaction.rb:40:in `use_ui'
        from /usr/lib/ruby/gems/2.0.0/gems/vagrant-1.2.2/plugins/commands/plugin/gem_helper.rb:41:in `with_environment'
        from /usr/lib/ruby/gems/2.0.0/gems/vagrant-1.2.2/plugins/commands/plugin/action/prune_gems.rb:128:in `call'
        from /usr/lib/ruby/gems/2.0.0/gems/vagrant-1.2.2/lib/vagrant/action/warden.rb:34:in `call'
        from /usr/lib/ruby/gems/2.0.0/gems/vagrant-1.2.2/plugins/commands/plugin/action/uninstall_plugin.rb:18:in `call'
        from /usr/lib/ruby/gems/2.0.0/gems/vagrant-1.2.2/lib/vagrant/action/warden.rb:34:in `call'
        from /usr/lib/ruby/gems/2.0.0/gems/vagrant-1.2.2/plugins/commands/plugin/action/bundler_check.rb:20:in `call'
        from /usr/lib/ruby/gems/2.0.0/gems/vagrant-1.2.2/lib/vagrant/action/warden.rb:34:in `call'
        from /usr/lib/ruby/gems/2.0.0/gems/vagrant-1.2.2/lib/vagrant/action/builder.rb:116:in `call'
        from /usr/lib/ruby/gems/2.0.0/gems/vagrant-1.2.2/lib/vagrant/action/runner.rb:61:in `block in run'
        from /usr/lib/ruby/gems/2.0.0/gems/vagrant-1.2.2/lib/vagrant/util/busy.rb:19:in `busy'
        from /usr/lib/ruby/gems/2.0.0/gems/vagrant-1.2.2/lib/vagrant/action/runner.rb:61:in `run'
        from /usr/lib/ruby/gems/2.0.0/gems/vagrant-1.2.2/plugins/commands/plugin/action/install_gem.rb:75:in `recover'
        from /usr/lib/ruby/gems/2.0.0/gems/vagrant-1.2.2/lib/vagrant/action/warden.rb:66:in `block in recover'
        from /usr/lib/ruby/gems/2.0.0/gems/vagrant-1.2.2/lib/vagrant/action/warden.rb:63:in `each'
        from /usr/lib/ruby/gems/2.0.0/gems/vagrant-1.2.2/lib/vagrant/action/warden.rb:63:in `recover'
        from /usr/lib/ruby/gems/2.0.0/gems/vagrant-1.2.2/lib/vagrant/action/warden.rb:52:in `rescue in call'
        from /usr/lib/ruby/gems/2.0.0/gems/vagrant-1.2.2/lib/vagrant/action/warden.rb:28:in `call'
        from /usr/lib/ruby/gems/2.0.0/gems/vagrant-1.2.2/lib/vagrant/action/builder.rb:116:in `call'
        from /usr/lib/ruby/gems/2.0.0/gems/vagrant-1.2.2/lib/vagrant/action/runner.rb:61:in `block in run'
        from /usr/lib/ruby/gems/2.0.0/gems/vagrant-1.2.2/lib/vagrant/util/busy.rb:19:in `busy'
        from /usr/lib/ruby/gems/2.0.0/gems/vagrant-1.2.2/lib/vagrant/action/runner.rb:61:in `run'
        from /usr/lib/ruby/gems/2.0.0/gems/vagrant-1.2.2/plugins/commands/plugin/command/base.rb:17:in `action'
        from /usr/lib/ruby/gems/2.0.0/gems/vagrant-1.2.2/plugins/commands/plugin/command/install.rb:44:in `execute'
        from /usr/lib/ruby/gems/2.0.0/gems/vagrant-1.2.2/plugins/commands/plugin/command/root.rb:47:in `execute'
        from /usr/lib/ruby/gems/2.0.0/gems/vagrant-1.2.2/lib/vagrant/cli.rb:46:in `execute'
        from /usr/lib/ruby/gems/2.0.0/gems/vagrant-1.2.2/lib/vagrant/environment.rb:467:in `cli'
        from /usr/lib/ruby/gems/2.0.0/gems/vagrant-1.2.2/bin/vagrant:84:in `<top (required)>'
        from /usr/sbin/vagrant:23:in `load'
        from /usr/sbin/vagrant:23:in `<main>'

I found some issue with this, but maybe I have to check Vagrant first.

@Akendo
Copy link
Author

Akendo commented Jun 10, 2013

I was able to fix it. I de-installed vagrant, installed the ruby-libvirt and then installed vagrant again. Additional for a test I installed another plugin for vagrant. Then I installed the plugin what then fix it.

I'm not sure, I only can guess. But maybe ruby-libvirt need to installed before vagrant is installed. Else it will not be link into the extra container of vagrant...But just an idea, rather then the reason.

Thanks for the help.

@Akendo Akendo closed this as completed Jun 10, 2013
@twouters
Copy link

Just in case someone else gets the same error, this is how I've made the plugin build:

CONFIGURE_ARGS="with-libvirt-include=/usr/include/libvirt with-libvirt-lib=/usr/lib" vagrant plugin install vagrant-kvm

@tatsuya6502
Copy link

#14 (comment)

Just in case someone else gets the same error, this is how I've made the plugin build:

Thank you! I ran into the same problem with Vagrant 1.3.5 on Arch Linux, and this tip worked like a charm!

@electrofelix
Copy link

Hit this problem when installing vagrant-libvirt and it failed to installed ruby-libvirt and discovered that the problem system was missing pkg-config. Appears that when pkg-config is missing or possibly also when /usr/lib/pkgconfig/libvirt.pc is missing that the script ext/libvirt/extconf.rb from ruby-libvirt is failing to find the headers/libraries but never indicates that the reason is pkg-config being missing.

The hint is that the listed 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
        --with-libvirt-include
        --without-libvirt-include
        --with-libvirt-lib
        --without-libvirt-lib
        --with-libvirt-config
        --without-libvirt-config
        --with-pkg-config
        --without-pkg-config

Has nothing listed for --with-libvirt-include or --with-libvirt-lib.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants