Ruby: Mint12 Nokogiri Install Issues (libxml2)

If you are running into errors when installing the Ruby Gem Nokogiri and the error you are getting has to do with the library ‘libxml2’ not being available you will need to execute the following commands to fix it.

  1. sudo apt-get install build-essential
  2. sudo apt-get install libxslt-dev libxml2-dev
  3. bundle install

Original Error Message Reference:

checking for libxml/parser.h… no
—–
libxml2 is missing.  please visit http://nokogiri.org/tutorials/installing_nokogiri.html for help with installing dependencies.
—–
*** extconf.rb failed ***
Could not create Makefile due to some reason, probably lack of
necessary libraries and/or headers.  Check the mkmf.log file for more
details.  You may need configuration options.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s