You are not logged in.

#1 2024-01-22 11:03:52

lolibest
Member
Registered: 2022-09-14
Posts: 7

Can Not Install vagrant-libvirt

I am trying to install vagrant-libvirt with

vagrant plugin install vagrant-libvirt

and i got error message

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:

conflicting dependencies date (= 3.2.2) and date (= 3.3.4)
  Activated date-3.3.4
  which does not match conflicting dependency (= 3.2.2)

  Conflicting dependency chains:
    date (= 3.3.4), 3.3.4 activated

  versus:
    date (= 3.2.2)

  Gems matching date (= 3.2.2):
    date-3.2.2

I found The doc mentioned use CONFIGURE_ARGS

I tried both

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

and

CONFIGURE_ARGS='with-ldflags=-L/opt/vagrant/embedded/lib with-libvirt-include=/usr/include/libvirt with-libvirt-lib=/usr/lib' \
    GEM_HOME=~/.vagrant.d/gems \
    GEM_PATH=$GEM_HOME:/opt/vagrant/embedded/gems \
    PATH=/opt/vagrant/embedded/bin:$PATH \
        vagrant plugin install vagrant-libvirt

However, I still get same error.

the

extra/ruby-date

is one of dependency of vagrant. What should i do?

Offline

#2 2024-01-22 14:34:54

d_fajardo
Member
Registered: 2017-07-28
Posts: 1,571

Re: Can Not Install vagrant-libvirt

Do you have base-devel installed?
https://wiki.archlinux.org/title/Vagrant

Offline

#3 2024-01-23 02:37:26

lolibest
Member
Registered: 2022-09-14
Posts: 7

Re: Can Not Install vagrant-libvirt

d_fajardo wrote:

Do you have base-devel installed?
https://wiki.archlinux.org/title/Vagrant

Yes I have been installed the base-devel.

Offline

#4 2024-01-23 03:10:55

lolibest
Member
Registered: 2022-09-14
Posts: 7

Re: Can Not Install vagrant-libvirt

May be the old version of ruby-date caused this issue.
ruby-date in current arch is version 3.2.2-4. but 3.3.4 was released, and there is

Flagged out-of-date on 2023-10-11

on package page.

I think install date use

gem install date

may solve this problem.

What should i do when some packages out of date?

Last edited by lolibest (2024-01-23 10:00:09)

Offline

#5 2024-02-04 17:53:04

mwoodpatrick
Member
Registered: 2023-05-14
Posts: 14

Re: Can Not Install vagrant-libvirt

I hit the same issue when running:

vagrant plugin install vagrant-vbguest vagrant-share

I did do:

gem install date
Fetching date-3.3.4.gem
WARNING:  You don't have /home/mwoodpatrick/.local/share/gem/ruby/3.0.0/bin in your PATH,
          gem executables will not run.
Building native extensions. This could take a while...
Successfully installed date-3.3.4
Parsing documentation for date-3.3.4
Installing ri documentation for date-3.3.4
Done installing documentation for date after 0 seconds
1 gem installed

But still get the same error:

vagrant plugin install vagrant-vbguest vagrant-share
Installing the 'vagrant-vbguest' plugin. This can take a few minutes...
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:

conflicting dependencies date (= 3.2.2) and date (= 3.3.4)
  Activated date-3.3.4
  which does not match conflicting dependency (= 3.2.2)

  Conflicting dependency chains:
    date (= 3.3.4), 3.3.4 activated

  versus:
    date (= 3.2.2)

  Gems matching date (= 3.2.2):
    date-3.2.2

What's the right way to resolve this (other than trying nix?)

Offline

#6 2024-02-04 21:11:29

josef_ak
Member
Registered: 2024-02-04
Posts: 1

Re: Can Not Install vagrant-libvirt

I had that same issue, I found a work around here
specifically the comment

VAGRANT_DISABLE_STRICT_DEPENDENCY_ENFORCEMENT=1 workaround temporarily solved the issue for me (without uninstalling / reinstalling everything).

has worked for me. My final command was

$VAGRANT_DISABLE_STRICT_DEPENDENCY_ENFORCEMENT=1 vagrant plugin install vagrant-vbguest

Offline

#7 2024-02-05 03:40:18

mwoodpatrick
Member
Registered: 2023-05-14
Posts: 14

Re: Can Not Install vagrant-libvirt

Many thanks that worked for me also

Offline

#8 2024-04-16 02:24:17

lolibest
Member
Registered: 2022-09-14
Posts: 7

Re: Can Not Install vagrant-libvirt

Thank you, it works!

Offline

Board footer

Powered by FluxBB