Install libxml-ruby gem on FreeBSB 9

I want to install libxml-ruby version 1.1.4.

I have libiconv and iconv installed, but I get the following errors:

extconf failure: need libiconv.

Install the libiconv or try passing one of the following options
to extconf.rb:


Solution: “teach” the gem the path to your iconv lib like this:

gem i libxml-ruby -v 1.1.4 -- --with-iconv-lib=/usr/local/lib

Leave a Reply

Your email address will not be published. Required fields are marked *