Try installing libxml2 first with Homebrew.
brew install libxml2
Then if the installation with the package
bundle config build.nokogiri --use-system-libraries \ --with-xml2-include=$(brew --prefix libxml2)/include/libxml2 bundle install
If installed directly using gem
gem install nokogiri -- --use-system-libraries \ --with-xml2-include=$(brew --prefix libxml2)/include/libxml2
Quanlong Jan 6 '17 at 4:56 on 2017-01-06 04:56
source share