Fix nokogiri installing error (libxml2)
Public
14 Nov 15:23

  • First, check which nokogiri version is being installed - you can get it from bundler’s output:
    ...
    Fetching nokogiri ---> 1.6.8.1 <---
    ...
    
  • Then, run the following command, but be sure to use the version from bundler’s output:
    gem install nokogiri -v 1.6.8.1 -- --use-system-libraries --with-xml2-include=$(xcrun --show-sdk-path)/usr/include/libxml2
    

    Now you can continue bundling :)

#untagged

Comments

Empty! You must sign in to add comments.