我需要安装libvirt
Vagrant 插件,但它失败并出现以下错误:
$ vagrant plugin install libvirt
The plugin(s) can't be installed due to the version conflicts below.
This means that the plugins depend on a library version that conflicts
with other plugins or Vagrant itself, creating an impossible situation
where Vagrant wouldn't be able to load the plugins.
You can fix the issue by either removing a conflicting plugin or
by contacting a plugin author to see if they can address the conflict.
Vagrant could not find compatible versions for gem "ffi":
In Gemfile:
libvirt (>= 0) ruby depends on
ffi (~> 0.6.3) ruby
ffi (1.9.10)
Run Code Online (Sandbox Code Playgroud)
我只使用hostmanager
插件。即使删除了这个插件,错误仍然存在,所以我猜它一定与 Vagrant 本身冲突。
是否可以修改libvirt
插件的 Gemfile以依赖它ffi 1.9.10
?我该怎么做?
我在 Fedora 21 上没有问题。
此外,我对 Ruby 一无所知。我只需要这个运行。
我找到了解决我的问题的方法。
vagrant-libvirt
NOT libvirt
安装也vagrant-libvirt
失败。
我在以下位置找到了这一行~/.vagrant.d/gems/extensions/x86_64-linux/ruby-libvirt-0.6.0/mkmf.log
:
gcc:错误:/usr/lib/rpm/redhat/redhat-hardened-cc1:没有那个文件或目录
这个问题的解决方法很简单:dnf install redhat-rpm-config-36-1.fc23.noarch
.
在此之后,安装成功完成。
归档时间: |
|
查看次数: |
1599 次 |
最近记录: |