How to install Nokogiri gem on ubuntu server

When trying to install Nokogiri gem on Ubuntu it will fail, the solution is to do the following:-

sudo apt-get install libxml2 libxml2-dev libxslt1-dev
sudo gem install nokogiri

Leave a Comment


NOTE - You can use these HTML tags and attributes:
<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>