Fedora 23のVagrant libvirtプロバイダ

Fedora 23のVagrant libvirtプロバイダ

Vagrantプラグインをインストールする必要がありますが、libvirt次のエラーで失敗します。

$ 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)

私はhostmanagerプラグインだけを使います。そのプラグインを削除した後もエラーが発生し続け、Vagrant自体と衝突すると推測されます。

libvirtプラグインが依存するGemfileを変更できますかffi 1.9.10?どうすればいいですか?

Fedora 21では何の問題もありません。

そして私はルビーを全く知りません。実行するにはこれが必要です。

ベストアンサー1

私の問題に対する解決策を見つけました。

  1. プラグインが呼び出されます。vagrant-libvirt いいえ libvirt
  2. インストール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

その後、インストールが正常に完了しました。

おすすめ記事