Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

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 http://nokogiri.org/tutorials/installing_nokogiri.html 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
add comment

1 Answer 1

up vote 7 down vote accepted

The answer was to do:

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

Your Answer

 
discard

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.