From owner-freebsd-questions@FreeBSD.ORG Sat Sep 20 19:52:07 2003 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 71AF516A4B3 for ; Sat, 20 Sep 2003 19:52:07 -0700 (PDT) Received: from harrier.mail.pas.earthlink.net (harrier.mail.pas.earthlink.net [207.217.120.12]) by mx1.FreeBSD.org (Postfix) with ESMTP id D299943FDF for ; Sat, 20 Sep 2003 19:52:06 -0700 (PDT) (envelope-from liuyang99@earthlink.net) Received: from user-12hdk5a.cable.mindspring.com ([69.22.208.170] helo=there) by harrier.mail.pas.earthlink.net with smtp (Exim 3.33 #1) id 1A0uKU-0006jQ-00 for freebsd-questions@freebsd.org; Sat, 20 Sep 2003 19:52:06 -0700 Content-Type: text/plain; charset="iso-8859-1" From: ALIAS To: freebsd-questions@freebsd.org Date: Sat, 20 Sep 2003 22:56:26 -0400 X-Mailer: KMail [version 1.3] MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Message-Id: Subject: help with installing a program X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: liuyang99@earthlink.net List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 21 Sep 2003 02:52:07 -0000 i just installed this program called libiconv.-1.9.1 but it has something in the installation process that i have no clue what they're saying, i will copy and paste it here , what i don't understand is how to recompile and reinstall GNC gettext so that it can take advantage of libiconv. After installing GNU libiconv for the first time, it is recommended to recompile and reinstall GNU gettext, so that it can take advantage of libiconv. On systems other than GNU/Linux, the iconv program will be internationalized only if GNU gettext has been built and installed before GNU libiconv. This means that the first time GNU libiconv is installed, we have a circular dependency between the GNU libiconv and GNU gettext packages, which can be resolved by building and installing either - first libiconv, then gettext, then libiconv again, or (on systems supporting shared libraries, excluding AIX) - first gettext, then libiconv, then gettext again. Recall that before building a package for the second time, you need to erase the traces of the first build by running "make distclean". This library can be built and installed in two variants: - The library mode. This works on all systems, and uses a library `libiconv.so' and a header file `'. (Both are installed through "make install".) To use it, simply #include and use the functions. To use it in an autoconfiguring package: - If you don't use automake, append m4/iconv.m4 to your aclocal.m4 file. - If you do use automake, add m4/iconv.m4 to your m4 macro repository. - Add to the link command line of libraries and executables that use the functions the placeholder @LIBICONV@ (or, if using libtool for the link, @LTLIBICONV@). If you use automake, the right place for these additions are the *_LDADD variables. Note that 'iconv.m4' is also part of the GNU gettext package, which installs it in /usr/local/share/aclocal/iconv.m4. - The libc plug/override mode. This works on GNU/Linux, Solaris and OSF/1 systems only. It is a way to get good iconv support without having glibc-2.1. It installs a library `libiconv_plug.so'. This library can be used with LD_PRELOAD, to override the iconv* functions present in the C library. On GNU/Linux and Solaris: $ export LD_PRELOAD=/usr/local/lib/libiconv_plug.so On OSF/1: $ export _RLD_LIST=/usr/local/lib/libiconv_plug.so:DEFAULT A program's source need not be modified, the program need not even be recompiled. Just set the LD_PRELOAD environment variable, that's it! Distribution: ftp://ftp.gnu.org/pub/gnu/libiconv/libiconv-1.8.tar.gz Homepage: http://www.gnu.org/software/libiconv/ Bug reports to: Bruno Haible