How to install Nokogiri Gem for Windows

I have a problem with nokogiri gem:

Could not open library 'C: \ Ruby187 \ lib \ ruby ​​\ gems \ 1.8 \ gems \ nokogiri-1.4.6-x86-mingw32 \ ext \ nokogiri \ libxml2.dll': unknown

I read that I had to try version 1.5.0.beta3. However, when I run

C:\Users\t3en4>gem install nokogiri --pre Fetching: nokogiri-1.5.0.beta.4.gem (100%) ERROR: Error installing nokogiri: The 'nokogiri' native gem requires installed build tools. Please update your PATH to include build tools or download the DevKit from 'http://rubyinstaller.org/downloads' and follow the instructions at 'http://github.com/oneclick/rubyinstaller/wiki/Development-Kit' 

What should I do?

+6
source share
2 answers

You need DevKit to properly assemble the gem.

+6
source

wow, I found a solution, there is nokogiri for 64 bit

goto rubygems, goto nokogiri gem, and see the version list!

https://rubygems.org/gems/nokogiri

pay attention to the x64-mingw32 and x86-mingw32 versions

it took several hours to figure this out ... enter image description here

+8
source

Source: https://habr.com/ru/post/891217/


All Articles