Nokogiri installation fails -libxml2 is missing

前端 未结 19 2507
情书的邮戳
情书的邮戳 2020-11-27 10:22

I always worked my way around Nokogiri installation issues by following the documentation in the \"Installing Nokogiri\" tutorial.

But this time, even after installi

19条回答
  •  醉梦人生
    2020-11-27 10:44

    At macOS none of above/below had really worked for me until I explicitly provided XCode libxml2 path to --with-xml2-include.

    gem install nokogiri -- --with-xml2-include=/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/libxml2 --use-system-libraries
    

提交回复
热议问题