C:\ruby\Ruby-2.1\bin>gem install nokogiri --platform x86-mingw32 Temporarily enhancing PATH to include DevKit... Building native extensions. This could take a while... ERROR: Error installing nokogiri: ERROR: Failed to build gem native extension.
C:/ruby/Ruby-2.1/bin/ruby.exe extconf.rb Building nokogiri using packaged libraries. Building zlib-1.2.8 for nokogiri.
IMPORTANT! Nokogiri builds and uses a packaged version of zlib.
If this is a concern for you and you want to use the system library instead, abort this installation process and reinstall nokogiri as follows:
gem install nokogiri -- --use-system-libraries
If you are using Bundler, tell it to use the option:
bundle config build.nokogiri --use-system-libraries bundle install
Downloading zlib-1.2.8.tar.gz
Downloading zlib-1.2.8.tar.gz ( 1%)
Downloading zlib-1.2.8.tar.gz ( 4%)
Downloading zlib-1.2.8.tar.gz ( 5%)
Downloading zlib-1.2.8.tar.gz ( 6%)
Downloading zlib-1.2.8.tar.gz ( 8%)
Downloading zlib-1.2.8.tar.gz ( 10%)
Downloading zlib-1.2.8.tar.gz ( 11%)
Downloading zlib-1.2.8.tar.gz ( 12%)
Downloading zlib-1.2.8.tar.gz ( 14%)
Downloading zlib-1.2.8.tar.gz ( 16%)
Downloading zlib-1.2.8.tar.gz ( 18%)
Downloading zlib-1.2.8.tar.gz ( 19%)
Downloading zlib-1.2.8.tar.gz ( 21%)
Downloading zlib-1.2.8.tar.gz ( 23%)
Downloading zlib-1.2.8.tar.gz ( 25%)
Downloading zlib-1.2.8.tar.gz ( 27%)
Downloading zlib-1.2.8.tar.gz ( 29%)
Downloading zlib-1.2.8.tar.gz ( 30%)
Downloading zlib-1.2.8.tar.gz ( 31%)
Downloading zlib-1.2.8.tar.gz ( 32%)
Downloading zlib-1.2.8.tar.gz ( 33%)
Downloading zlib-1.2.8.tar.gz ( 34%)
Downloading zlib-1.2.8.tar.gz ( 35%)
Downloading zlib-1.2.8.tar.gz ( 37%)
Downloading zlib-1.2.8.tar.gz ( 39%)
Downloading zlib-1.2.8.tar.gz ( 41%)
Downloading zlib-1.2.8.tar.gz ( 42%)
Downloading zlib-1.2.8.tar.gz ( 43%)
Downloading zlib-1.2.8.tar.gz ( 44%)
Downloading zlib-1.2.8.tar.gz ( 45%)
Downloading zlib-1.2.8.tar.gz ( 46%)
Downloading zlib-1.2.8.tar.gz ( 48%)
Downloading zlib-1.2.8.tar.gz ( 49%)
Downloading zlib-1.2.8.tar.gz ( 51%)
Downloading zlib-1.2.8.tar.gz ( 52%)
Downloading zlib-1.2.8.tar.gz ( 54%)
Downloading zlib-1.2.8.tar.gz ( 56%)
Downloading zlib-1.2.8.tar.gz ( 57%)
Downloading zlib-1.2.8.tar.gz ( 59%)
Downloading zlib-1.2.8.tar.gz ( 61%)
Downloading zlib-1.2.8.tar.gz ( 62%)
Downloading zlib-1.2.8.tar.gz ( 63%)
Downloading zlib-1.2.8.tar.gz ( 65%)
Downloading zlib-1.2.8.tar.gz ( 67%)
Downloading zlib-1.2.8.tar.gz ( 69%)
Downloading zlib-1.2.8.tar.gz ( 71%)
Downloading zlib-1.2.8.tar.gz ( 73%)
Downloading zlib-1.2.8.tar.gz ( 75%)
Downloading zlib-1.2.8.tar.gz ( 77%)
Downloading zlib-1.2.8.tar.gz ( 78%)
Downloading zlib-1.2.8.tar.gz ( 80%)
Downloading zlib-1.2.8.tar.gz ( 82%)
Downloading zlib-1.2.8.tar.gz ( 84%)
Downloading zlib-1.2.8.tar.gz ( 86%)
Downloading zlib-1.2.8.tar.gz ( 88%)
Downloading zlib-1.2.8.tar.gz ( 89%)
Downloading zlib-1.2.8.tar.gz ( 90%)
Downloading zlib-1.2.8.tar.gz ( 91%)
Downloading zlib-1.2.8.tar.gz ( 93%)
Downloading zlib-1.2.8.tar.gz ( 95%)
Downloading zlib-1.2.8.tar.gz ( 97%)
Downloading zlib-1.2.8.tar.gz ( 99%)
Downloading zlib-1.2.8.tar.gz (100%)
Extracting zlib-1.2.8.tar.gz into tmp/i686-mswin32_100/ports/zlib/1.2.8... OK
Running 'compile' for zlib 1.2.8... ERROR, review 'tmp/i686-mswin32_100/ports/
ib/1.2.8/compile.log' to see what happened.
*** 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
--srcdir=.
--curdir
--ruby=C:/ruby/Ruby-2.1/bin/ruby
--help
--clean
--use-system-libraries
--enable-static
--disable-static
--with-zlib-dir
--without-zlib-dir
--with-zlib-include
--without-zlib-include=${zlib-dir}/inclu
--with-zlib-lib
--without-zlib-lib=${zlib-dir}/lib
--enable-cross-build
--disable-cross-build
C:/ruby/Ruby-2.1/lib/ruby/gems/2.1.0/gems/mini_portile-0.6.0/lib/mini_portile.rb
:279:in block in execute': Failed to complete compile task (RuntimeError)
from C:/ruby/Ruby-2.1/lib/ruby/gems/2.1.0/gems/mini_portile-0.6.0/lib/mi
ni_portile.rb:271:in
chdir'
from C:/ruby/Ruby-2.1/lib/ruby/gems/2.1.0/gems/mini_portile-0.6.0/lib/mi
ni_portile.rb:271:in execute'
from extconf.rb:402:in
compile'
from C:/ruby/Ruby-2.1/lib/ruby/gems/2.1.0/gems/mini_portile-0.6.0/lib/mi
ni_portile.rb:110:in cook'
from extconf.rb:253:in
block in process_recipe'
from extconf.rb:154:in tap'
from extconf.rb:154:in
process_recipe'
from extconf.rb:377:in `
extconf failed, exit code 1
Gem files will remain installed in C:/ruby/Ruby-2.1/lib/ruby/gems/2.1.0/gems/nok ogiri-1.6.3.1 for inspection. Results logged to C:/ruby/Ruby-2.1/lib/ruby/gems/2.1.0/extensions/x86-mswin32-10 0/2.1.0/nokogiri-1.6.3.1/gem_make.out