Невозможно установить новейший гем libxml-ruby

У меня возникают проблемы при установке новейшего гем libxml-ruby для ruby ​​2.3.3. Вот ошибка, которую я получаю:

ERROR:  Error installing libxml-ruby:
    ERROR: Failed to build gem native extension.

current directory: C:/Ruby-2.3.3/lib/ruby/gems/2.3.0/gems/libxml-ruby-2.9.0/ext/libxml
C:/Ruby-2.3.3/bin/ruby.exe -r ./siteconf20170117-6916-4mgpq6.rb extconf.rb
checking for libxml/xmlversion.h in /opt/include/libxml2,/opt/local/include/libxml2,/usr/local/include/libxml2,/usr/include/libxml2... yes
checking for xmlParseDoc() in -lxml2... 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:/Ruby-2.3.3/bin/$(RUBY_BASE_NAME)
    --with-xml2-config
    --without-xml2-config
    --with-xml2-dir
    --without-xml2-dir
    --with-xml2-include
    --without-xml2-include=${xml2-dir}/include
    --with-xml2-lib
    --without-xml2-lib=${xml2-dir}/lib
    --with-xml2lib
    --without-xml2lib
 extconf failure: need libxml2.

Install the library or try one of the following options to extconf.rb:

  --with-xml2-config=/path/to/xml2-config
  --with-xml2-dir=/path/to/libxml2
  --with-xml2-lib=/path/to/libxml2/lib
  --with-xml2-include=/path/to/libxml2/include


To see why this extension failed to compile, please check the mkmf.log which can be found here:

Я нашел похожие проблемы при поиске решения, но не нашел ответа на проблему. Кто-нибудь смог это исправить?

0 ответов

Другие вопросы по тегам