[Ruby] WARNING: Nokogiri was built against LibXML version 2.7.3, but has dynamically loaded 2.7.8
After installing the sunspot gem in Ruby on Rails and running rails g sunspot_rails:install
, I encountered the common Nokogiri and LibXML error.
WARNING: Nokogiri was built against LibXML version 2.7.3, but has dynamically loaded 2.7.8
As mentioned in the Stack Overflow question below, for Mac OS, install libxml2, libxslt, and libiconv via Homebrew, then set the path to these libraries and install Nokogiri.
For the installation method of libxml2, libxslt, libiconv, and Nokogiri, I referenced the following:
That’s all from the Gemba.