Installing nokogiri with Babun gives the error "libxml2 version 2.6.21 or later is required!"

I am trying to get Ruby on Rails (Ruby 2.0.0p598, Rails 4.2.0) working on Babun. I am following this tutorial:

If installing Nokogiri should be as easy as

gem install nokogiri -- --use-system-libraries


But it always gives me the same error as in the title.

I know I already have this installed. I installed libxml2-dev

along with Babun package manager using

pact install libxml2-devel


I tried to manually download another libxml2 package and pointed it like this

gem install nokogiri -- --use-system-libraries --with-xml2-config=C:/Ruby/


(I put the folder in C: \ Ruby). However, nothing works and it thinks there is no libxml2 when I definitely have it.



source to share

1 answer

If you are using 64bit ruby ​​NokoGiri on windows has problems with this. Try gem install nokogiri --prerelease

More on this can be read here libxml2 is missing for nokogiri gem on Windows 8 x64 with Ruby 1.9.3



All Articles