Ask Ubuntu is a question and answer site for Ubuntu users and developers. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

An error occurred while installing nokogiri (1.5.5), and Bundler cannot continue

How to fix and get past the error?

Installing nokogiri (1.5.5) with native extensions 
Gem::Installer::ExtensionBuildError: ERROR: Failed to build gem native extension.

        /usr/bin/ruby1.8 extconf.rb 
checking for libxml/parser.h... yes
checking for libxslt/xslt.h... no
libxslt is missing.  please visit for help with installing dependencies.
share|improve this question
Have you installed libxslt package? If not try installing libxslt1.1 or libxslt1-dev – devav2 Sep 15 '12 at 18:06
up vote 7 down vote accepted

The answer was to do:

sudo apt-get install libxslt-dev 
share|improve this answer
This worked for me too but for this error: libxml2 is missing. please visit for help with installing dependencies. – Richard Hollis Oct 12 '12 at 11:39

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.