Installing Nokogiri on OSX

This is such a pain to install on OSX.  Due to Xcode or some other nonsense, OSX has a real hard time getting the required lib’s to get Nokogiri installed… you can try and follow the directions on the Nokogiri main site but it won’t work.

The solution I found in a comment on Stack Overflow and I’m listing it here for further reference:

gem install nokogiri — –with-xml2-include=/Applications/ –use-system-libraries

I needed the –use-system-libraries.  I mean look at that install command, it’s nuts.  But that’s what you have to do, so you can get nokogiri installed.

I think PC is a lot easier, although I haven’t tried on a PC in some time.

Installing Nokogiri on OSX
User Rating: 0 (0 votes)