Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 5985087
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 22, 20262026-05-22T22:28:38+00:00 2026-05-22T22:28:38+00:00

I always worked my way around Nokogiri installation issues by following the documentation in

  • 0

I always worked my way around Nokogiri installation issues by following the documentation in the “Installing Nokogiri” tutorial.

But this time, even after installing all the dependencies, Nokogiri hasn’t been installed. I get the following error:

libxml2 is missing.  please visit <http://nokogiri.org/tutorials/installing_nokogiri.html>

I tried installing it by specifying the libxml2 and libxslt directories:

sudo gem install nokogiri -- --with-xml2-include=/usr/include/libxml2 --with-xml2-lib=/usr/lib --with-xslt-dir=/usr/

but it returned the same error.

I followed all the other related Stack Overflow articles and none helped. Does anyone have a solution?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-22T22:28:39+00:00Added an answer on May 22, 2026 at 10:28 pm

    First, install the dependencies:

    sudo apt-get install libxslt-dev libxml2-dev
    

    If you still receive the error, you may be missing a compiler toolchain:

    sudo apt-get install build-essential
    

    You’ll get the “libxml2 is missing” error if you’re missing a build toolchain (at least I ran into this issue on Debian Lenny).

    The Nokogiri build test-compiles a libxml2 header file to verify that it is present, however, it doesn’t differentiate between “libxml2 is missing” and “a compiler to test libxml2 is missing”.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Observed: First, 'ctrl+v'+selection always worked before for me. But this time, i got normal
My webapp (Spring3 + Hibernate3) always worked with services class-annotated with @Transactional and this
I am not sure I worded that correctly but python and time always confuses
I know there must be a way to do this and I've always just
I've been working with branches for quite some time now, but I always used
I have a Maven project that has always worked fine in Netbeans, but upgrading
Have been pushing my git to Heroku for some time and always worked. Made
So this time I decided to go with a web programming language. I always
My development team has worked with subversion for quite some time. The way that
I'm running an Excel macro that calls a LISP script, which has always worked

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.