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
Pretty Print to a File in Ruby
How to Allow Binary File Download Using Grape API
Enumerator as an Infinite Generator in Ruby
Rails Custom Validation - Only One Record Can Be True
Alias_Method and Class_Methods Don't Mix
Unicode Characters in Ruby 1.9.3 Irb with Rvm
Connecting to Oracle Db Using Ruby
Deleting the Current Session with Rack::Session::Cookie
How to Install a Gem Globally Without Sudo Using Rbenv
Error Installing Gem: Couldn't Reserve Space for Cygwin's Heap, Win32 Error 487
Cheat Sheet for All Design Patterns Implemented in Ruby
Read Contents of a Local File into a Variable in Rails
Simple Regex -- Replace Underscore with a Space
How to Get a Substring from Position N to the Last Char in Ruby