Nokogiri says Libxml2 versions above 2.9.0 are broken, right?

The installation message says so, but I cannot find links to it. "currently known to be broken," but by whom and what is the problem? I checked the Nokogiri code base and error log, but I cannot find a link to this.

Here (the relevant parts) of the Nokogiri message (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. 
+7
ruby libxml2 nokogiri
source share
1 answer

There are two ways: 1. Use system libraries that indicate:

 gem install nokogiri -- --use-system-libraries 
  1. this may be a grep problem, indicated here , and you can get it through a shell command (assuming using Bash):

export GREP_OPTIONS="--color=auto"

+1
source share

All Articles