Incompatible Library Version: Nokogiri.Bundle Requires Version 8.0.0 or Later, But Libiconv.2.Dylib Provides Version 7.0.0

Incompatible library version: nokogiri.bundle requires version 8.0.0 or later, but libiconv.2.dylib provides version 7.0.0

I finally found a combination of suggestions that resolved my issue:

http://www.rqna.net/qna/swryr-bundle-install-stopped-at-nokogiri.html

brew tap homebrew/dupes

then:

brew install libiconv


brew link --force libiconv

Apparently 'brew tap homebrew/dupes' allowed me to use the 'brew install libiconv' without an error, and from there the 'brew link --force libiconv' remedied the issue.

Incompatible library version: nokogiri.bundle requires version 11.0.0 or later, but libxml2.2.dylib

I suggest you first uninstall Nokogiri using:

sudo gem uninstall nokogiri

Then install Nokogiri using rubygems:

gem install nokogiri

If that doesn't work, there's an open issue on Nokogiri to support libxml 2.9.0 and later. There's a libxml2-2.9.1 branch that was started in preparation for the next release of libxml2.

Then try pulling from that branch in your Gemfile like this:

gem "nokogiri", github: "sparklemotion/nokogiri", branch: "libxml2-2.9.1"

or install an older version of libxml2.

If that still doesn't work you may also want to try the suggestions here: What to do if libxml2 is being a jerk.

Address Sanitizer with Ruby Nokogiri module

OK got it to work.

Compiled everything using GCC using these flags:

-fsanitize=address to CFLAGS, CXXFLAGS and LDFLAGS



Related Topics



Leave a reply



Submit