Error --> Incompatible library version: nokogiri.bundle requires version 11.0.0 or later, but libxml2.2.dylib provides version 10.0.0

1,024 views
Skip to first unread message

adgone...@gmail.com

unread,
Aug 29, 2013, 5:28:53 PM8/29/13
to nokogi...@googlegroups.com
When I run "rspec" under one of my Ruby on Rails projects, I get the error pasted below.  This wasn't originally an issue, perhaps an update caused this, I don't know.  What's the best way to resolve?  I want to be careful as this is quite a complicated software development environment that took quite a while to put together and I don't want to start breaking things by "trying" stuff.  I'm of course using Time Machine but still.  Please advise.

MacMini:common dev$ rspec
/usr/local/rvm/gems/ruby-1.9.3-p327/gems/nokogiri-1.6.0/lib/nokogiri.rb:28:in `require': dlopen(/usr/local/rvm/gems/ruby-1.9.3-p327/gems/nokogiri-1.6.0/lib/nokogiri/nokogiri.bundle, 9): Library not loaded: /Users/dev/.bundler/tmp/90095/gems/nokogiri-1.6.0/ports/i686-apple-darwin11/libxml2/2.8.0/lib/libxml2.2.dylib (LoadError)
  Referenced from: /usr/local/rvm/gems/ruby-1.9.3-p327/gems/nokogiri-1.6.0/lib/nokogiri/nokogiri.bundle
  Reason: Incompatible library version: nokogiri.bundle requires version 11.0.0 or later, but libxml2.2.dylib provides version 10.0.0 - /usr/local/rvm/gems/ruby-1.9.3-p327/gems/nokogiri-1.6.0/lib/nokogiri/nokogiri.bundle
from /usr/local/rvm/gems/ruby-1.9.3-p327/gems/nokogiri-1.6.0/lib/nokogiri.rb:28:in `<top (required)>'
...

Ben Langfeld

unread,
Aug 30, 2013, 11:49:59 AM8/30/13
to nokogi...@googlegroups.com
This sometimes happens when you upgrade ruby. You should try gem uninstall nokogiri && bundle install.

If your development environment is difficult to repeat, you might want to consider that a bug in itself ;)


--
You received this message because you are subscribed to the Google Groups "nokogiri-talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email to nokogiri-tal...@googlegroups.com.
To post to this group, send email to nokogi...@googlegroups.com.
Visit this group at http://groups.google.com/group/nokogiri-talk.
For more options, visit https://groups.google.com/groups/opt_out.

Reply all
Reply to author
Forward
0 new messages