Skip to content
This repository has been archived by the owner on Mar 10, 2020. It is now read-only.

Setup breaks while 'Installing libvirt plugin for Vagrant' #66

Open
kobliha opened this issue May 12, 2015 · 3 comments
Open

Setup breaks while 'Installing libvirt plugin for Vagrant' #66

kobliha opened this issue May 12, 2015 · 3 comments

Comments

@kobliha
Copy link
Member

kobliha commented May 12, 2015

bin/pennyworth setup
Installing packages:

  • Installing curl...
  • Installing iptables...
  • Installing dnsmasq...
  • Installing libxml2-devel...
  • Installing libxslt-devel...
  • Installing libvirt-devel...
  • Installing libvirt...
  • Installing expect...
  • Installing qemu-kvm...
  • Downloading and installing https://dl.bintray.com/mitchellh/vagrant/vagrant_1.6.3_x86_64.rpm...
    Reloading udev rules
    Installing libvirt plugin for Vagrant...
    Pennyworth experienced an unexpected error. Please file a bug report at https://github.com/SUSE/pennyworth/issues/new.
    Execution of "vagrant plugin install --plugin-version 0.0.16 vagrant-libvirt" failed with status 1: Bundler, the underlying system Vagrant uses to install plugins, (...).

Error output:
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:

Net::HTTPNotFound: No gems found matching "vagrant-vmware-fusion" "3.2.5" nil

Standard output:
Installing the 'vagrant-libvirt --version '0.0.16'' plugin. This can take a few minutes...

Backtrace:
/usr/lib64/ruby/gems/2.1.0/gems/cheetah-0.4.0/lib/cheetah.rb:555:in check_errors' /usr/lib64/ruby/gems/2.1.0/gems/cheetah-0.4.0/lib/cheetah.rb:364:inrun'
/root/GIT/pennyworth/lib/commands/setup_command.rb:82:in install_vagrant_plugin' /root/GIT/pennyworth/lib/commands/setup_command.rb:29:inexecute'
/root/GIT/pennyworth/lib/cli.rb:117:in block (2 levels) in <class:Cli>' /usr/lib64/ruby/gems/2.1.0/gems/gli-2.11.0/lib/gli/command_support.rb:126:incall'
/usr/lib64/ruby/gems/2.1.0/gems/gli-2.11.0/lib/gli/command_support.rb:126:in execute' /usr/lib64/ruby/gems/2.1.0/gems/gli-2.11.0/lib/gli/app_support.rb:284:inblock in call_command'
/usr/lib64/ruby/gems/2.1.0/gems/gli-2.11.0/lib/gli/app_support.rb:297:in call' /usr/lib64/ruby/gems/2.1.0/gems/gli-2.11.0/lib/gli/app_support.rb:297:incall_command'
/usr/lib64/ruby/gems/2.1.0/gems/gli-2.11.0/lib/gli/app_support.rb:79:in run' bin/pennyworth:25:in

'

@kobliha
Copy link
Member Author

kobliha commented May 12, 2015

Worked for second time after a while...

bin/pennyworth setup
Installing packages:

  • Installing curl...
  • Installing iptables...
  • Installing dnsmasq...
  • Installing libxml2-devel...
  • Installing libxslt-devel...
  • Installing libvirt-devel...
  • Installing libvirt...
  • Installing expect...
  • Installing qemu-kvm...
  • Downloading and installing https://dl.bintray.com/mitchellh/vagrant/vagrant_1.6.3_x86_64.rpm...
    Reloading udev rules
    Installing libvirt plugin for Vagrant...
    Adding user root to groups:
  • Adding to group libvirt...
  • Adding to group qemu...
  • Adding to group kvm...
    Disabling PolicyKit authentication for libvirt...
    Allowing libvirt access for normal users...
    Allowing qemu-kvm access for user root...
    Making arp command available for normal users...

@mauromorales
Copy link
Contributor

@kobliha sorry for the late reply, is this still an issue for you? We just upgraded to the latest version from vagrant and libvirt so you could also re run the command and get it updated. If you get a chance to do so let me know if it works for you

@bear454
Copy link
Member

bear454 commented Oct 18, 2016

I'm seeing this as well (on Tumbleweed):

$ bin/pennyworth setup
Warning: Pennyworth is not tested upstream on this platform. Use at your own risk.
Installing packages:
  * Installing curl...
  * Installing iptables...
  * Installing dnsmasq...
  * Installing libxml2-devel...
  * Installing libxslt-devel...
  * Installing libvirt-devel...
  * Installing libvirt...
  * Installing expect...
Reloading udev rules
Installing libvirt plugin for Vagrant...
Pennyworth experienced an unexpected error. Please file a bug report at https://github.com/SUSE/pennyworth/issues/new.
Execution of "vagrant plugin install --plugin-version\=0.0.3 fog-libvirt" failed with status 1: Bundler, the underlying system Vagrant uses to install plugins, (...).

Error output:
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:

An error occurred while installing ruby-libvirt (0.6.0), and Bundler cannot continue.
Make sure that `gem install ruby-libvirt -v '0.6.0'` succeeds before bundling.

Gem::Installer::ExtensionBuildError: ERROR: Failed to build gem native extension.

    /opt/vagrant/embedded/bin/ruby 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
    --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/2.0.0/mkmf.rb:434: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.0.0/mkmf.rb:519:in `try_link0'
    from /opt/vagrant/embedded/lib/ruby/2.0.0/mkmf.rb:534:in `try_link'
    from /opt/vagrant/embedded/lib/ruby/2.0.0/mkmf.rb:620:in `block in try_ldflags'
    from /opt/vagrant/embedded/lib/ruby/2.0.0/mkmf.rb:613:in `with_ldflags'
    from /opt/vagrant/embedded/lib/ruby/2.0.0/mkmf.rb:619:in `try_ldflags'
    from /opt/vagrant/embedded/lib/ruby/2.0.0/mkmf.rb:1725:in `pkg_config'
    from extconf.rb:72:in `<main>'


Gem files will remain installed in /home/jmason/.vagrant.d/gems/gems/ruby-libvirt-0.6.0 for inspection.
Results logged to /home/jmason/.vagrant.d/gems/gems/ruby-libvirt-0.6.0/ext/libvirt/gem_make.out

Standard output:
Installing the 'fog-libvirt --version '0.0.3'' plugin. This can take a few minutes...


Backtrace:
/usr/lib64/ruby/gems/2.2.0/gems/cheetah-0.5.0/lib/cheetah.rb:641:in `check_errors'
/usr/lib64/ruby/gems/2.2.0/gems/cheetah-0.5.0/lib/cheetah.rb:404:in `run'
/home/jmason/projects/github/pennyworth/lib/pennyworth/commands/setup_command.rb:135:in `install_vagrant_plugin'
/home/jmason/projects/github/pennyworth/lib/pennyworth/commands/setup_command.rb:31:in `execute'
/home/jmason/projects/github/pennyworth/lib/pennyworth/cli.rb:118:in `block (2 levels) in <class:Cli>'
/usr/lib64/ruby/gems/2.2.0/gems/gli-2.14.0/lib/gli/command_support.rb:126:in `call'
/usr/lib64/ruby/gems/2.2.0/gems/gli-2.14.0/lib/gli/command_support.rb:126:in `execute'
/usr/lib64/ruby/gems/2.2.0/gems/gli-2.14.0/lib/gli/app_support.rb:296:in `block in call_command'
/usr/lib64/ruby/gems/2.2.0/gems/gli-2.14.0/lib/gli/app_support.rb:309:in `call'
/usr/lib64/ruby/gems/2.2.0/gems/gli-2.14.0/lib/gli/app_support.rb:309:in `call_command'
/usr/lib64/ruby/gems/2.2.0/gems/gli-2.14.0/lib/gli/app_support.rb:83:in `run'
bin/pennyworth:25:in `<main>'

Despite...

$ gem list libvirt

*** LOCAL GEMS ***

fog-libvirt (0.3.0)
ruby-libvirt (0.7.0, 0.6.0)

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

No branches or pull requests

3 participants