Mac user and getting WARNING: Nokogiri was built against LibXML version 2.7.8, but has dynamically loaded 2.7.3

前端 未结 16 1586
暖寄归人
暖寄归人 2020-11-27 11:24

I have done all kinds of research and tried many different things. I know this question has been answered many times, but none of the suggested solutions are working for me.

16条回答
  •  隐瞒了意图╮
    2020-11-27 11:54

    OS : Maverick 10.9.3

    Ruby 1.9.3

    WARNING: Nokogiri was built against LibXML version 2.9.1, but has dynamically loaded 2.9.0

    My solution:

    gem uninstall nokogiri
    brew update
    cd /usr/local
    brew versions libxml2
    git checkout 5dd45d7 /usr/local/Library/Formula/libxml2.rb # libxml version 2.9.0
    brew install libxml2
    bundle install or gem install nokogiri -v "1.5.11"
    

    Hope this help

提交回复
热议问题