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

前端 未结 8 1870
醉话见心
醉话见心 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:06

    First gem uninstall nokogiri Second install nokogiri third restart terminal

    be happy

    0 讨论(0)
  • 2020-12-01 15:12

    If you have Homebrew installed, try this. It solves the issue with the "Parsing documentation for nokogiri-1.6.1" hang. This worked for me.

    gem uninstall nokogiri libxml-ruby
    

    It'll ask you a series of questions based on how much of it you want to uninstall, answer "yes" or "[y]" to all.

    brew update
    brew uninstall libxml2
    brew install libxml2 --with-xml2-config
    brew link --force libxml2
    brew install libxslt 
    brew link --force libxslt 
    
    gem install nokogiri --no-rdoc --no-ri 
    

    Then, in your project file:

    bundle install 
    
    0 讨论(0)
提交回复
热议问题