Can';t在windows 8上安装nokogiri rubygem。

Can';t在windows 8上安装nokogiri rubygem。,ruby,windows-8,nokogiri,Ruby,Windows 8,Nokogiri,因此,我已经安装了ruby(x32为2.0.0)和DevKit-mingw64-32-4.7.2-20130224-1151-sfx.exe,并确保它能够安装json rubygem。我已经在管理员帐户中下载了ruby.exe,并以管理员身份运行命令行。我用谷歌搜索这个问题已经一个小时了,但还没有解决它!任何帮助都将不胜感激 ERROR: Error installing nokogiri: ERROR: Failed to build gem native extension

因此,我已经安装了ruby(x32为2.0.0)和DevKit-mingw64-32-4.7.2-20130224-1151-sfx.exe,并确保它能够安装json rubygem。我已经在管理员帐户中下载了ruby.exe,并以管理员身份运行命令行。我用谷歌搜索这个问题已经一个小时了,但还没有解决它!任何帮助都将不胜感激

ERROR:  Error installing nokogiri:
        ERROR: Failed to build gem native extension.

    C:/Ruby200/bin/ruby.exe extconf.rb
The system cannot find the path specified.
checking for libxml/parser.h... no
-----
libxml2 is missing.  please visit http://nokogiri.org/tutorials/installing_nokog
iri.html for help with installing dependencies.
-----
*** 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:/Ruby200/bin/ruby
        --with-zlib-dir
        --without-zlib-dir
        --with-zlib-include
        --without-zlib-include=${zlib-dir}/include
        --with-zlib-lib
        --without-zlib-lib=${zlib-dir}/lib
        --with-iconv-dir
        --without-iconv-dir
        --with-iconv-include
        --without-iconv-include=${iconv-dir}/include
        --with-iconv-lib
        --without-iconv-lib=${iconv-dir}/lib
        --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-xslt-dir
        --without-xslt-dir
        --with-xslt-include
        --without-xslt-include=${xslt-dir}/include
        --with-xslt-lib
        --without-xslt-lib=${xslt-dir}/lib
        --with-libxslt-config
        --without-libxslt-config
        --with-pkg-config
        --without-pkg-config
        --with-libxml-2.0-config
        --without-libxml-2.0-config
        --with-pkg-config
        --without-pkg-config
        --with-libiconv-config
        --without-libiconv-config
        --with-pkg-config
        --without-pkg-config


Gem files will remain installed in C:/Ruby200/lib/ruby/gems/2.0.0/gems/nokogiri-
1.5.9 for inspection.
Results logged to C:/Ruby200/lib/ruby/gems/2.0.0/gems/nokogiri-1.5.9/ext/nokogir
i/gem_make.out

您是如何安装Ruby的,请先尝试使用Ruby安装程序安装它,然后查看是否仍然存在问题。

您使用64位devkit安装了32位Ruby。请重试,但确保它们匹配。

Nokogiri尚未在64位计算机上支持Windows Ruby 2.0。请在

上继续,您可以尝试。

请找到一个类似的答案,该答案应该会对您有所帮助[nokogiri不会安装-错误:无法构建gem本机扩展][1][1]:我不知道Windoze的用法,但我认为可能会有所帮助。你需要为Nokogiri准备这个库。作者明确表示他已经安装了32位版本的Ruby和DevKit。我也有同样的问题,在32位Windows上,安装了32位Ruby和DevKit.DevKit-mingw64-32-4.7.2-20130224-1151-sfx.exe的RubyInstaller.org上列出了32位版本的DevKit