現在私はrails tutorialをやっています
Gemfileに
ruby
1gem 'fog'
とやると
Fetching ovirt-engine-sdk 4.2.4 Installing ovirt-engine-sdk 4.2.4 with native extensions Gem::Ext::BuildError: ERROR: Failed to build gem native extension. current directory: C:/Uru/ruby_version/Ruby24/Ruby24-x64/lib/ruby/gems/2.4.0/gems/ovirt-engine-sdk-4.2.4/ext/ovirtsdk4c C:/Uru/ruby_version/Ruby24/Ruby24-x64/bin/ruby.exe -r ./siteconf20181001-17128-qjvv1n.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=C:/Uru/ruby_version/Ruby24/Ruby24-x64/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: C:/Uru/ruby_version/Ruby24/Ruby24-x64/lib/ruby/gems/2.4.0/extensions/x64-mingw32/2.4.0/ovirt-engine-sdk-4.2.4/mkmf.log extconf failed, exit code 1 Gem files will remain installed in C:/Uru/ruby_version/Ruby24/Ruby24-x64/lib/ruby/gems/2.4.0/gems/ovirt-engine-sdk-4.2.4 for inspection. Results logged to C:/Uru/ruby_version/Ruby24/Ruby24-x64/lib/ruby/gems/2.4.0/extensions/x64-mingw32/2.4.0/ovirt-engine-sdk-4.2.4/gem_make.out 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' --source 'https://rubygems.org/'` succeeds before bundling. In Gemfile: fog was resolved to 2.0.0, which depends on fog-ovirt was resolved to 1.1.2, which depends on ovirt-engine-sdk
とエラーが出てきます。
ただしgemをfogでなくfog-awsにするとうまくいきます。とはいうものの自分はawsを使う予定はありません。どうすればいいでしょうか?
回答1件
あなたの回答
tips
プレビュー
バッドをするには、ログインかつ
こちらの条件を満たす必要があります。