bundle updateを行ったところ、以下のエラーが出ました。
An error occurred while installing ovirt-engine-sdk (4.2.4), and Bundler cannot continue. Make sure that `gem install ovirt-engine-sdk -v '4.2.4'` succeeds before bundling.
指定gemをインストールしてくださいとの事なので
gem install ovirt-engine-sdk -v '4.2.4'`
を行いました。
すると以下の別のエラーが発生しています。
Building native extensions. This could take a while... ERROR: Error installing ovirt-engine-sdk: ERROR: Failed to build gem native extension. current directory: /home/vagrant/.rbenv/versions/2.4.0/lib/ruby/gems/2.4.0/gems/ovirt-engine-sdk-4.2.4/ext/ovirtsdk4c /home/vagrant/.rbenv/versions/2.4.0/bin/ruby -r ./siteconf20180522-11143-c35v2a.rb extconf.rb checking for xml2-config... no *** 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 --without-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=/home/vagrant/.rbenv/versions/2.4.0/bin/$(RUBY_BASE_NAME) --with-libxml2-config --without-libxml2-config --with-pkg-config --without-pkg-config extconf.rb:29:in `<main>': The "libxml2" package isn't available. (RuntimeError) To see why this extension failed to compile, please check the mkmf.log which can be found here: /home/vagrant/.rbenv/versions/2.4.0/lib/ruby/gems/2.4.0/extensions/x86_64-linux/2.4.0-static/ovirt-engine-sdk-4.2.4/mkmf.log extconf failed, exit code 1 Gem files will remain installed in /home/vagrant/.rbenv/versions/2.4.0/lib/ruby/gems/2.4.0/gems/ovirt-engine-sdk-4.2.4 for inspection. Results logged to /home/vagrant/.rbenv/versions/2.4.0/lib/ruby/gems/2.4.0/extensions/x86_64-linux/2.4.0-static/ovirt-engine-sdk-4.2.4/gem_make.out
エラーログを見てもいまひとつ理解ができないのですが、どのような対策が考えられますでしょうか。
エラーメッセージのうち、省略部分のほうが重要な情報ですので、そこまで書いてください。
回答1件
あなたの回答
tips
プレビュー