Yesterday I was setting up a new box with Mac OS X Lion at the office. I had installed homebrew,
rvm and ruby 1.9.3rc1
and when I ran bundle in a project folder I got the following error:
The trick is to do the brew link command, this adds libiconv to the homebrew path so the compiler
can find the lib and header files. After running those homebrew commands the nokogiri installation worked: