if __name__ is None
if __name__ is None

Reputation: 11533

WARNING: Nokogiri was built against LibXML version 2.8.0, but has dynamically loaded 2.7.8

I have this problem on my Ruby 2.0.0 and Rails 4 config on OSX ML. I do not have this issue on my Arch Linux workstation.

The reason why this warning is so annoying, is that it breaks my Vim plugin (SweetVimRspec), and therefore kills my Vim development workflow, as I cannot test.

I tried every upvoted solution here: Mac user and getting WARNING: Nokogiri was built against LibXML version 2.7.8, but has dynamically loaded 2.7.3

And I cant get rid of it (actually I got rid of it in nokogiri itself, but in rspec and rails console not at all).

Upvotes: 8

Views: 7501

Answers (3)

Vineel Shah
Vineel Shah

Reputation: 1058

This gets rid of the warning, but it screws up SSH.

export DYLD_LIBRARY_PATH=/usr/local/lib

I'm running Mac OS X Mavericks.

The solution comes from this blog entry: http://blog.leshill.org/blog/2010/04/24/dynamic-load-paths-in-osx.html

Upvotes: 0

Bob Roberts
Bob Roberts

Reputation: 1021

Usually in these situations, it works to uninstall all versions of the gem it is complaining about and then reinstall it.

Upvotes: 0

richard
richard

Reputation: 1585

I had to install Ruby 1.9.3 on Ubuntu 12.04 and was getting this warning. I found and tried the answer at https://stackoverflow.com/a/14658949/1539589 and it worked perfectly for me.

Upvotes: 2

Related Questions