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 7668637
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 31, 20262026-05-31T15:24:44+00:00 2026-05-31T15:24:44+00:00

System: Mac OS X Lion running bundle install tells me to do: gem install

  • 0

System: Mac OS X Lion

running bundle install tells me to do:
gem install nokogiri -v '1.5.2'

Building native extensions.  This could take a while...
1ERROR:  Error installing nokogiri:
    ERROR: Failed to build gem native extension.

        /Users/ernsheong/.rvm/rubies/ruby-1.9.3-p0/bin/ruby extconf.rb
extconf.rb:10: Use RbConfig instead of obsolete and deprecated Config.
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... yes
checking for xmlParseDoc() in -lxml2... yes
checking for xsltParseStylesheetDoc() in -lxslt... yes
checking for exsltFuncRegister() in -lexslt... yes
checking for xmlHasFeature()... yes
checking for xmlFirstElementChild()... yes
checking for xmlRelaxNGSetParserStructuredErrors()... yes
checking for xmlRelaxNGSetParserStructuredErrors()... yes
checking for xmlRelaxNGSetValidStructuredErrors()... yes
checking for xmlSchemaSetValidStructuredErrors()... yes
checking for xmlSchemaSetParserStructuredErrors()... yes
creating Makefile

make
compiling html_document.c
compiling html_element_description.c
compiling html_entity_lookup.c
compiling html_sax_parser_context.c
compiling html_sax_push_parser.c
compiling nokogiri.c
compiling xml_attr.c
compiling xml_attribute_decl.c
compiling xml_cdata.c
compiling xml_comment.c
compiling xml_document.c
compiling xml_document_fragment.c
compiling xml_dtd.c
compiling xml_element_content.c
compiling xml_element_decl.c
compiling xml_encoding_handler.c
compiling xml_entity_decl.c
compiling xml_entity_reference.c
compiling xml_io.c
xml_io.c:28:10: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'int' [-Wshorten-64-to-32]
  return safe_len;
  ~~~~~~ ^~~~~~~~
1 warning generated.
compiling xml_libxml2_hacks.c
compiling xml_namespace.c
compiling xml_node.c
compiling xml_node_set.c
compiling xml_processing_instruction.c
compiling xml_reader.c
compiling xml_relax_ng.c
compiling xml_sax_parser.c
compiling xml_sax_parser_context.c
compiling xml_sax_push_parser.c
compiling xml_schema.c
compiling xml_syntax_error.c
compiling xml_text.c
compiling xml_xpath_context.c
xml_xpath_context.c:189:30: warning: format string is not a string literal (potentially insecure) [-Wformat-security]
  rb_raise(rb_eRuntimeError, message);
                             ^~~~~~~
1 warning generated.
compiling xslt_stylesheet.c
linking shared-object nokogiri/nokogiri.bundle
ld: warning: directory not found for option '-L/usr/local/Cellar/libxml2/2.7.8/lib'

make install
/usr/bin/install -c -m 0755 nokogiri.bundle /Users/ernsheong/.rvm/gems/ruby-1.9.3-p0/gems/nokogiri-1.5.2/lib/nokogiri
make: /usr/bin/install: No such file or directory
make: *** [/Users/ernsheong/.rvm/gems/ruby-1.9.3-p0/gems/nokogiri-1.5.2/lib/nokogiri/nokogiri.bundle] Error 1


Gem files will remain installed in /Users/ernsheong/.rvm/gems/ruby-1.9.3-p0/gems/nokogiri-1.5.2 for inspection.
Results logged to /Users/ernsheong/.rvm/gems/ruby-1.9.3-p0/gems/nokogiri-1.5.2/ext/nokogiri/gem_make.out

It is somewhat similar but still different from OS X Lion, Attempting Nokogiri install – libxml2 is missing and An error occurred while installing nokogiri (1.5.2)

Thanks in advance.

  • 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-31T15:24:45+00:00Added an answer on May 31, 2026 at 3:24 pm

    i solved the problem by reinstalling ruby using the following Gist: gist.github.com/1856859. A friend pointed out that the –with-gcc=clang option during install is important for Lion/Snow Leopard

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

Sidebar

Related Questions

I have a Mac running Lion. Before I did a clean install of Lion,
First I have install Mac 10.6.3 on my system now I want to install
I have two versions of python installed on my mac running OSX Lion. The
On my system (Mac OS 10.6) /usr/include/stdarg.h is: /* This file is public domain.
I'm trying to install GDAL 1.7.1 on Mac OS X Lion using: python setup.py
After a fresh install of Lion and Xcode 4.1 from the Mac App Store,
I was trying to install matplotlib in Mac OSX Lion. Tried to used the
I used this question/answer to install DB2 in Lion: How do I install IBM
I'm having trouble installing RubyGems on my Mac OS X Lion operating system. I
We're using SCons + swtoolkit for our build system on Mac, Linux, and Windows.

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.