nokogiri Fail install on Ruby 2.3 for Windows #1456 <From github>

Q:  

gem install rails
on nokogiri install fail with error: 'nokogiri requires Ruby version < 2.3, >= 1.9.2.'

gem install nokogiri -v '1.6.5'
solve problem of installation
but
gem update
again fails

A:

A quick workaround is the following (ruby 2.3 win64):

gem install nokogiri -v '1.6.6.4'
gem install rails 
gem install nokogiri -v '1.6.8.rc3'

After that explictly include
gem 'nokogiri', '>=1.6.8.rc3'
in gemfile
gem update works without error
bundle install and bundle update works too


Reference Link:  https://github.com/sparklemotion/nokogiri/issues/1456
原文地址:https://www.cnblogs.com/larry2016/p/5399132.html