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

  • Home
  • SEARCH
  • 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 6374165
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T01:27:15+00:00 2026-05-25T01:27:15+00:00

When I try to install nokogiri gem on ruby-1.8.7-p334 [ x86_64 ] on Mac

  • 0

When I try to install nokogiri gem on ruby-1.8.7-p334 [ x86_64 ] on Mac OS X 10.6, I get the following error:

sudo gem install nokogiri
/Users/patelc75/.rvm/rubies/ruby-1.8.7-p334/bin/gem:4: warning: Insecure world writable dir /Users in PATH, mode 040777
Building native extensions.  This could take a while...
ERROR:  Error installing nokogiri:
ERROR: Failed to build gem native extension.

/Users/patelc75/.rvm/rubies/ruby-1.8.7-p334/bin/ruby extconf.rb
checking for libxml/parser.h... yes
checking for libxslt/xslt.h... yes
checking for libexslt/exslt.h... yes
checking for iconv_open() in iconv.h... no
checking for iconv_open() in -liconv... no
-----
libiconv 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.
  • 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-25T01:27:15+00:00Added an answer on May 25, 2026 at 1:27 am

    Before installing nokogiri gem, you need to get libraries installed.
    Here are the steps to do it with homebrew

    # the rest of this snippet assumes installation of libxml 2.7.7. YMMV.
    brew install libxml2
    brew link libxml2
    
    # install libxslt from source
    wget ftp://xmlsoft.org/libxml2/libxslt-1.1.26.tar.gz
    tar -zxvf libxslt-1.1.26.tar.gz
    cd libxslt-1.1.26
    ./configure --prefix=/usr/local/Cellar/libxslt/1.1.26 \
                --with-libxml-prefix=/usr/local/Cellar/libxml2/2.7.7
    make
    sudo make install
    
    gem install nokogiri -- --with-xslt-dir=/usr/local/Cellar/libxslt/1.1.26
    

    With macports

    sudo port install libxml2 libxslt
    sudo gem install nokogiri
    

    More information here http://nokogiri.org/tutorials/installing_nokogiri.html

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

Sidebar

Related Questions

I'm trying to install the Nokogiri gem under an RVM managed Ruby 1.8.7 installation
I'm try to install google-geocode for rails sudo gem install google-geocode but I get
When I try to install the Android Developer Tool, I get the following error.
When I try to install RVM the following error shows up: $ bash <
When I try do install rmagick I get the following error message: Can't install
I'm getting the following error when I try to install one of my ClickOnce
I'm getting the following error when I try to install mod_wsgi ./configure checking for
I'm trying to install the Ruby gem sanitize. I've already installed nokogiri: >gem list
I try to install json extension for php. Using pecl I get the following
When I run 'rails server' I get the following error: Could not find gem

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.