On Thu, Jan 20, 2011 at 9:49 AM, Jimmy Lim <jimmyb...@gmail.com> wrote:

> Hi Randell,
>
> From the libiconv site, there are two ways to install it, the library mode
> (the one that you did) and the other one is the libc plug/override mode.
>
> By executing iconv -V gives you the glibc version installed on your CentOS.
>
> rpm -q -f /usr/bin/iconv
> glibc-common-2.5-49
>
> From the GNU page of libiconv, it specifically said that:
>
> 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.
>
> Another info from the site:
>
> 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
> preloadable_libiconv.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/preloadable_libiconv.so
>
>    - On OSF/1:
>
>    $ export _RLD_LIST=/usr/local/lib/preloadable_libiconv.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!
>
> Instead of doing the whole process by hand and to make your life much
> easier, I would highly recommend to use other CentOS yum repo such as:
>
> epel
> rpmforge
> ius
>

The way I understand this is that I only need to yum install the preloadable
libiconv and set the LD_PRELOAD environment variable to point to it. Is this
correct?
_________________________________________________
Philippine Linux Users' Group (PLUG) Mailing List
http://lists.linux.org.ph/mailman/listinfo/plug
Searchable Archives: http://archives.free.net.ph

Reply via email to