You are not logged in.
Pages: 1
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
Do you have base-devel installed?
https://wiki.archlinux.org/title/Vagrant
Offline
Do you have base-devel installed?
https://wiki.archlinux.org/title/Vagrant
Yes I have been installed the base-devel.
Offline
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
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
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
Many thanks that worked for me also
Offline
Thank you, it works!
Offline
Confirmed works ! awesome. Appreciate it --
~ % VAGRANT_DISABLE_STRICT_DEPENDENCY_ENFORCEMENT=1 vagrant plugin install vagrant-libvirt
Installing the 'vagrant-libvirt' plugin. This can take a few minutes...
Fetching xml-simple-1.1.9.gem
Fetching nokogiri-1.16.6-x86_64-linux.gem
Fetching ruby-libvirt-0.8.3.gem
Building native extensions. This could take a while...
Fetching formatador-1.1.0.gem
Fetching fog-core-2.4.0.gem
Fetching fog-xml-0.1.4.gem
Fetching fog-json-1.2.0.gem
Fetching fog-libvirt-0.12.0.gem
Fetching diffy-3.4.2.gem
Fetching vagrant-libvirt-0.12.2.gem
Installed the plugin 'vagrant-libvirt (0.12.2)'!
~ %
Last edited by dualfade (2024-07-08 17:38:29)
Offline
Pages: 1