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

前端 未结 8 1903
醉话见心
醉话见心 2020-12-01 14:31

I\'m getting this error when trying to run rspec in Hartl\'s tutorial. I googled the error, but it\'s never for the specific version and the fixes don\'t actually fix my pro

8条回答
  •  栀梦
    栀梦 (楼主)
    2020-12-01 15:04

    Your error message says:

    nokogiri.bundle requires version 11.0.0 or later, but libxml2.2.dylib provides version 10.0.0

    This makes me think that your gem actually requires a version of libxml that is newer than your system version. How have you installed libxml2? If you have homebrew installed, you might want to try upgrading it with

    brew update
    brew upgrade
    

    I was able to install Nokogiri 1.6.0 with Ruby 2.0.0p247 on OS X 10.9, and then require it in IRb. I double checked with Homebrew, and it is actually keg-only. However, Nokogiri seems to install its own version into gems/nokogiri-1.6.0/ports. On my machine, it is under x86_64-apple-darwin13.0.0.

提交回复
热议问题