我正在尝试gem install ovirt-engine-sdk
在 Windows 10 机器上运行,但遇到以下问题:
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:/Ruby25-x64/lib/ruby/gems/2.5.0/extensions/x64-mingw32/2.5.0/ovirt-engine-sdk-4.2.5/mkmf.log
extconf failed, exit code 1
Gem files will remain installed in
C:/Ruby25-x64/lib/ruby/gems/2.5.0/gems/ovirt-engine-sdk-4.2.5 for inspection.
Results logged to
C:/Ruby25-x64/lib/ruby/gems/2.5.0/extensions/x64-mingw32/2.5.0/ovirt-engine-sdk-4.2.5/gem_make.out
An error occurred while installing ovirt-engine-sdk (4.2.5), and Bundler cannot
continue.
Make sure that `gem install ovirt-engine-sdk -v '4.2.5'` succeeds before
bundling.
In Gemfile:
fog was resolved to 2.1.0, which depends on
fog-ovirt was resolved to 1.1.2, which depends on
ovirt-engine-sdk
我试图:
- 在 Windows 上安装 libxml2
- 尝试使用所有
--without-libxml2-config
,--without-libxml2-config
, ... 参数 - 卸载并重新安装 Ruby,以便尝试使用其他 Ruby 版本(我当前的 ruby 版本是
ruby 2.5.3p105 (2018-10-18 revision 65156) [x64-mingw32]
- 或多或少地尝试我在 Stack Overflow 上找到的有关相关问题的所有不同答案
我的想法已经不多了,所以如果有人能有任何线索让我摆脱困境,那将不胜感激!
太感谢了!