How to install Nokogiri on Windows?

Hello,

Since Nokogiri is supposed to be much faster than REXML, I tried installing it… to no avail.

On Windows 7 32-bits, I installed Ruby 2.7.0-1 (x86) without the devkit because it’s much smaller.

Would it explain why installing Nokogiri fails?

c:\>gem install nokogiri
Fetching mini_portile2-2.4.0.gem
Fetching nokogiri-1.10.9-x86-mingw32.gem
Successfully installed mini_portile2-2.4.0
ERROR:  Error installing nokogiri:
        The last version of nokogiri (>= 0) to support your Ruby & RubyGems was 1.10.9. Try installing it with `gem install nokogiri -v 
1.10.9`
        nokogiri requires Ruby version >= 2.3, < 2.7.dev. The current ruby version is 2.7.0.0.

c:\>gem install nokogiri -v 1.10.9
ERROR:  Error installing nokogiri:
        The last version of nokogiri (= 1.10.9) to support your Ruby & RubyGems was 1.10.9. Try installing it with `gem install nokogiri -v 
1.10.9`
        nokogiri requires Ruby version >= 2.3, < 2.7.dev. The current ruby version is 2.7.0.0.

Thank you.

For others’ benefit: Since Nokogiri seems currently incompatible with the latest Ruby installer (2.7.0.1), I uninstalled to downgrade to 2.6.6.1, and ran “gem install nokogiri” successfully.

Excellent
I came here just to suggest that.

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs