Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Select an option

  • Save vparihar01/5856524 to your computer and use it in GitHub Desktop.

Select an option

Save vparihar01/5856524 to your computer and use it in GitHub Desktop.
How to fix: Nokogiri Incompatible library version: nokogiri.bundle requires version 11.0.0 or later, but libxml2.2.dylib provides version 10.0.0. dlopen bundle.open. Using homebrew on lion to install nokogiri and lixml
FIXME:
WARNING: Nokogiri was built against LibXML version 2.7.3, but has dynamically loaded 2.7.8
or
ERROR -: Incompatible library version: nokogiri.bundle requires version 11.0.0 or later, but libxml2.2.dylib provides version 10.0.0
gem uninstall nokogiri libxml-ruby
brew update
brew uninstall libxml2
brew install libxml2 --with-xml2-config
brew link --force libxml2
brew install libxslt
brew link --force libxslt
bundle config build.nokogiri -- --with-xml2-dir=/usr --with-xslt-dir=/opt/local --with-iconv-dir=/opt/local
bundle install
@miyamotodev123

Copy link
Copy Markdown

Thank you! So happy this worked!

@Joseworks

Copy link
Copy Markdown

Thank you :)! It worked very well!

@neosergio

Copy link
Copy Markdown

Thank you. It worked very well with OS X 10.11.2

@HunterMeyer

Copy link
Copy Markdown

This is awesome! Thank you!

@clara101

Copy link
Copy Markdown

Worked like a gem!!!! Thanks so much!

@ppaulojr

Copy link
Copy Markdown

It worked!! Almost 3 years later!!

@airevin14

Copy link
Copy Markdown

Still working :)

@gastongouron

Copy link
Copy Markdown

Still working, nice fix!

@rabnawazPikesSoft

Copy link
Copy Markdown

this would work for me on ruby 2.0.0p648

ai also follow thse steps but still stuck on the same error
Reason: Incompatible library version: nokogiri.bundle requires version 11.0.0 or later, but libxml2.2.dylib provides version 10.0.0 - /Users/rabnawazjansher/.rvm/gems/ruby-2.0.0-p648/gems/nokogiri-1.6.1/lib/nokogiri/nokogiri.bundle

@samkay123

Copy link
Copy Markdown

Magic IT works ...

@jhmarina

Copy link
Copy Markdown

Thanks! it saved my day

@jnewman12

Copy link
Copy Markdown

saved my day! thanks a bunch

@Mdhvince

Copy link
Copy Markdown

Thanks you !! Very helpful

ghost commented Jan 13, 2018

Copy link
Copy Markdown

after all this time ... this still works in January 2018 ......

thank you so much!!!!!!!!!!

@rebeccaryang

Copy link
Copy Markdown

Woot! This worked for me.

@jjnevis

jjnevis commented Mar 13, 2018

Copy link
Copy Markdown

Thanks, this is still solving issues after all this time!

@pedroneto1209

Copy link
Copy Markdown

2020 and this is still solving issues, thank you!!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment