On Thu, 13 Sep 2007 09:19:45 -0700
"Charlie Caroff" <[EMAIL PROTECTED]> wrote:

> Hi,
> 
> When I try to install  libxml-ruby-0.5.1.0, I get this error message:
> 
> gcc -I. -I. -I/usr/local/lib/ruby/1.8/i386-freebsd6.2 -I.
> -I/usr/local/include/libxml2 -DRUBY_EXTCONF_H=\"extconf.h\"
> -I/usr/local/libexec/iconv/include -fPIC -g -O2 -I.
> -I/usr/local/lib/ruby/1.8/i386-freebsd6.2 -I.
> -I/usr/local/include/libxml2 -c cbg.c
> In file included from /usr/local/include/libxml2/libxml/parser.h:796,
>                  from /usr/local/include/libxml2/libxml/globals.h:18,
>                  from /usr/local/include/libxml2/libxml/xmlIO.h:117,
>                  from cbg.c:2:
> /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 /usr/local/include/libxml2/libxml/globals.h:18,
>                  from /usr/local/include/libxml2/libxml/xmlIO.h:117,
>                  from cbg.c:2:
> /usr/local/include/libxml2/libxml/encoding.h:136: error: syntax error
> before "iconv_t"
> *** Error code 1
> 
> I search for iconv.h, and it's in /usr/local/include/iconv.h
> 
> I'm running 6.2-STABLE FreeBSD, i386

Charlie,

You are obviously trying to install Ruby gem that is not ported.

So you can try to imitate a port: install devel/ruby-gems port and do
something like this (in (t)csh):

  # setenv CONFIGURE_ARGS "--with-opt-dir=/usr/local"
  # /usr/bin/env /usr/local/bin/gem install --no-ri \
     --install-dir /usr/local/lib/ruby/gems/1.8 libxml-ruby-0.5.1.0.gem

This will install the gem (try 'gem list'), but you can easily
experience some problems: please note that gem ports (rubygem-*) use
bsd.ruby.mk and devel/ruby-gems/Makefile.common files which contain a
lot of sophistication needed for proper FreeBSD integration.

This is just a very general advice... For details and the right answer,
you could probably ask FreeBSD Ruby person, Akinori Musha
([EMAIL PROTECTED]) -- that's what I'd do. :)

Nikola Lečić
_______________________________________________
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"

Reply via email to