Issues with installing nokogiri
I was trying to install nokogiri
and it was keeps failing with the message below.
gitlab|category-search-dropdown ⇒ gem install nokogiri -v '1.6.8'
Building native extensions. This could take a while...
ERROR: Error installing nokogiri:
ERROR: Failed to build gem native extension.
I could only fix it by running the command below.
gem install nokogiri -- --use-system-libraries=true --with-xml2-include=/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.11.sdk/usr/include/libxml2/
In somehow the command above didn't work for me until I quit iTerm and start new shell.