Mountain Lion - LibXML & Nokogiri

前端 未结 9 1620
一整个雨季
一整个雨季 2020-12-24 12:34

I\'ve just updated to OS X Mountain Lion and I\'m getting the following when working with rails and terminal.

WARNING: Nokogiri was built against LibXML vers         


        
9条回答
  •  一个人的身影
    2020-12-24 13:16

    Using Ruby 1.9.3-p194 and Rails 3.2.11 on OS X 10.8.2 (Mountain Lion), starting rails c gave the warning:

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

    The uninstall/install nokogiri trick didn't work for me. The solution was much simpler... The warning was avoided completely by editing the Gemifile to place 'nokogiri' above 'pg'.

    References:

    • https://github.com/sparklemotion/nokogiri/issues/742
    • http://www.alanmaciel.net/?p=104

提交回复
热议问题