Date: Fri, 14 Sep 2007 03:52:53 +0200 From: Nikola Lecic <nlecic@EUnet.yu> To: "Charlie Caroff" <charlie.caroff@gmail.com> Cc: freebsd-questions@freebsd.org Subject: Re: iconv.h and ruby-libxml Message-ID: <200709140152.l8E1quah022701@smtpclu-2.EUnet.yu> In-Reply-To: <b103a4480709130919u5e13fd72idc75c69f74cecad2@mail.gmail.com> References: <b103a4480709130919u5e13fd72idc75c69f74cecad2@mail.gmail.com>
next in thread | previous in thread | raw e-mail | index | archive | help
On Thu, 13 Sep 2007 09:19:45 -0700 "Charlie Caroff" <charlie.caroff@gmail.com> wrote: > Hi, >=20 > When I try to install libxml-ruby-0.5.1.0, I get this error message: >=20 > gcc -I. -I. -I/usr/local/lib/ruby/1.8/i386-freebsd6.2 -I. > -I/usr/local/include/libxml2 -DRUBY_EXTCONF_H=3D\"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 >=20 > I search for iconv.h, and it's in /usr/local/include/iconv.h >=20 > 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=3D/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 (knu@FreeBSD.org) -- that's what I'd do. :) Nikola Le=C4=8Di=C4=87
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200709140152.l8E1quah022701>