[Libxml2] help installing libxml-ruby on FreeBSD 6.2

Charlie Caroff charlie.caroff at gmail.com
Tue Aug 14 02:54:15 EDT 2007


Hi,

I'm running freebsd 6.2 release, and I'm having trouble getting libxml-ruby
installed.  When I run

gem install -r libxml-ruby

I get this output

Building native extensions.  This could take a while...
ERROR:  While executing gem ... (Gem::Installer::ExtensionBuildError)
    ERROR: Failed to build gem native extension.

ruby extconf.rb install -r libxml-ruby
checking for socket() in -lsocket... no
checking for gethostbyname() in -lnsl... no
checking for atan() in -lm... no
checking for atan() in -lm... yes
checking for inflate() in -lz... yes
checking for iconv_open() in -liconv... yes
checking for xmlParseDoc() in -lxml2... yes
checking for libxml/xmlversion.h... no
checking for #include <libxml/xmlversion.h>
... yes
checking for xmlDocFormatDump() in -lxml2... yes
checking for docbCreateFileParserCtxt()... yes
creating extconf.h
creating Makefile

make
"Makefile", line 126: warning: duplicate script for target
"/usr/local/lib/ruby/gems/1.8/gems/libxml-ruby-0.3.8.4/lib/xml" ignored
gcc -I. -I. -I/usr/local/lib/ruby/1.8/i386-freebsd6.2 -I.
-I/usr/local/include/libxml2 -DRUBY_EXTCONF_H=\"extconf.h\" -fPIC -g -O2
-Wall -I. -I/usr/local/lib/ruby/1.8/i386-freebsd6.2 -I.
-I/usr/local/include/libxml2 -c ruby_xml_xpath.c
In file included from /usr/local/include/libxml2/libxml/parser.h:796,
                 from libxml.h:19,
                 from ruby_xml_xpath.c:5:
/usr/local/include/libxml2/libxml/encoding.h:28:19: iconv.h: No such file or
directory
In file included from /usr/local/include/libxml2/libxml/parser.h:796,
                 from libxml.h:19,
                 from ruby_xml_xpath.c:5:
/usr/local/include/libxml2/libxml/encoding.h:136: error: syntax error before
"iconv_t"
*** Error code 1

Stop in /usr/local/lib/ruby/gems/1.8/gems/libxml-ruby-0.3.8.4/ext/xml.


Gem files will remain installed in /usr/local/lib/ruby/gems/1.8/gems/libxml-
ruby-0.3.8.4 for inspection.
Results logged to /usr/local/lib/ruby/gems/1.8/gems/libxml-ruby-0.3.8.4
/ext/xml/gem_make.out

Any hints?

Thanks,

Charlie
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://rubyforge.org/pipermail/libxml2-discuss/attachments/20070813/6af6c2e1/attachment.html 


More information about the Libxml2-discuss mailing list