Search code examples
rubyrubygemsnokogirilibiconv

libiconv missing on OSX 10.8 installing nokogiri


I know this has been asked before, but I'm struggling to get this working and a lot of gems depend on nokogiri unfortunately

I'm running 10.8.2 with rvm, ruby 1.9.3

Running the following command, obtained from various gists / stack overflow questions on the topic: gem install nokogiri -- --with-iconv-dir=/usr/local/Cellar/libiconv/1.13.1

gives "libiconv is missing."

Even though looking inside that dir shows the libiconv directories.

How can I go about getting this working?


Solution

  • There are instructions at http://nokogiri.org/tutorials/installing_nokogiri.html which explain what's worked in the past for homebrew 0.9 users.

    If those instructions don't work for you, please email nokogiri-talk and we'll figure it out and update the installation documentation.