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

前端 未结 8 1901
醉话见心
醉话见心 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条回答
  •  萌比男神i
    2020-12-01 14:47

    First, check your version of libxml:

    otool -L /usr/lib/libxml2.2.dylib
    

    It can return

    /usr/local/opt/libxml2/lib/libxml2.2.dylib (compatibility version 11.0.0, current version 11.0.0)
    

    or

    /usr/lib/libxml2.2.dylib (compatibility version 10.0.0, current version 10.9.0)
    

    Then you can try reinstalling libxml to upgrade it:

    brew uninstall libxml2 libxslt
    brew install libxml2 libxslt
    

    After that, try to recompile your package:

    make clean
    ./configure
    make
    sudo make install
    

提交回复
热议问题