From owner-freebsd-questions@FreeBSD.ORG Fri Sep 14 01:52:50 2007 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id B0C1F16A41B for ; Fri, 14 Sep 2007 01:52:50 +0000 (UTC) (envelope-from nlecic@EUnet.yu) Received: from smtpclu-2.EUnet.yu (smtpclu-2.eunet.yu [194.247.192.227]) by mx1.freebsd.org (Postfix) with ESMTP id 3935E13C45B for ; Fri, 14 Sep 2007 01:52:49 +0000 (UTC) (envelope-from nlecic@EUnet.yu) Received: from nyx.localhost (adsl-251-7.eunet.yu [213.198.251.7]) by smtpclu-2.EUnet.yu (8.13.6/8.13.6) with ESMTP id l8E1quah022701; Fri, 14 Sep 2007 03:52:57 +0200 Message-Id: <200709140152.l8E1quah022701@smtpclu-2.EUnet.yu> Date: Fri, 14 Sep 2007 03:52:53 +0200 From: Nikola Lecic To: "Charlie Caroff" In-Reply-To: References: X-Mailer: Claws Mail 3.0.0 (GTK+ 2.10.14; i386-portbld-freebsd6.2) X-Operating-System: FreeBSD 6.2-RELEASE X-Face: pbl6-.[$G'Fi(Ogs2xlXP-V6{3||$Y[LOYs&~GJoikj'cVjcFC[V7du;;0~6nO= [Vi2?uU1Pq~,=Adj@,T:|"`$AF~il]J.Nz#2pU',Y7.{B;m/?{#sO^Dvo$rnmY6] Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-EUNET-AVAS-Milter-Version: 2.0.0 X-AVAS-Virus-Status: clean X-AVAS-Spamd-Symbols: BAYES_50,TW_BX,TW_IB,UNPARSEABLE_RELAY X-AVAS-Spam-Score: 0.2 Cc: freebsd-questions@freebsd.org Subject: Re: iconv.h and ruby-libxml X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 14 Sep 2007 01:52:50 -0000 On Thu, 13 Sep 2007 09:19:45 -0700 "Charlie Caroff" 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