Can't install Nokogiri gem, "libxml/parser.h" not found, but its there, why? Can't install Nokogiri gem, "libxml/parser.h" not found, but its there, why? ruby ruby

Can't install Nokogiri gem, "libxml/parser.h" not found, but its there, why?


This will work.

sudo apt-get install libxslt-dev libxml2-devgem install nokogiri


I just faced the same issue on (cat /etc/centos-release:) CentOS release 6.6 (Final).

sudo yum install -y rubygem-nokogiri

…fixed that problem.

(see: http://www.nokogiri.org/tutorials/installing_nokogiri.html#red_hat___centos)