7

The message on installation says so, but I can't find any reference to it. "are currently known to be broken", but known by whom, and what is the problem? I've checked the Nokogiri code base and issue log, but I can't find the reference to this.

Here's the (relevant parts of the) message Nokogiri (v1.6.3.1 in this case) gives:

IMPORTANT!  Nokogiri builds and uses a packaged version of libxml2.

If this is a concern for you and you want to use the system library
instead, abort this installation process and reinstall nokogiri as
follows:

    gem install nokogiri -- --use-system-libraries

If you are using Bundler, tell it to use the option:

    bundle config build.nokogiri --use-system-libraries
    bundle install

However, note that nokogiri does not necessarily support all versions
of libxml2.

For example, libxml2-2.9.0 and higher are currently known to be broken
and thus unsupported by nokogiri, due to compatibility problems and
XPath optimization bugs.
the Tin Man
  • 158,662
  • 42
  • 215
  • 303
ian
  • 12,003
  • 9
  • 51
  • 107
  • 2
    The XPath optimization bug is probably [this issue](https://bugzilla.gnome.org/show_bug.cgi?id=695699). This was my fault but it is [fixed in the current 2.9.2 release](https://git.gnome.org/browse/libxml2/commit/?id=b4bcba23f64b71105514875f165a63d4cc720609). – nwellnhof Oct 29 '14 at 16:10
  • @nwellnhof Kudos to you for taking responsibility like that, and thanks for the info. Mystery 33% solved! Now to find out what the "compatibility problems" are, and why ***known*** is so hard to ***know*** :-) – ian Oct 29 '14 at 16:20
  • Hi Guys, I'm using yosemite and this is happening to me. Any help??? – olleh Jan 12 '15 at 08:28
  • @olleh could it be related to [this issue](https://github.com/sparklemotion/nokogiri/issues/1214) ? – ian Jan 12 '15 at 12:25

1 Answers1

1

There might be two ways: 1. use system libraries as it indicate:

gem install nokogiri -- --use-system-libraries 
  1. it might be grep problem, indicated here, and you might be able to get over it by a shell command (assuming using Bash):

export GREP_OPTIONS="--color=auto"

xjlin0
  • 341
  • 5
  • 10
  • This doesn't answer the question so I can't give it the tick, but it may be helpful to others so best to leave it here. – ian Apr 02 '15 at 11:13