[ale] Re: Installing j2se on RHEL 3?
James P. Kinney III
jkinney at localnetsolutions.com
Tue May 24 22:58:08 EDT 2005
On Tue, 2005-05-24 at 22:22 -0400, Jim Popovitch wrote:
> On Tue, 2005-05-24 at 21:03 -0400, Joe Steele wrote:
> > I think this behavior is controllable. A vanilla version of tail (from GNU
> > coreutils-5.2.1) can be forced to exhibit the 'obsolete' behavior if the
> > environment contains the variable '_POSIX2_VERSION' set to some value less
> > than 200112.
> >
> > I don't know about RHEL, but FC3 uses a modified tail command so that the
> > only way to get the 'new' behavior is to define '_POSIX2_VERSION' >= 200112
> > and also define POSIXLY_CORRECT in the environment.
> >
> > To get the 'obsolete' behavior, I'd suggest trying:
> > export _POSIX2_VERSION=199209
>
> Looking at source code for tail.c from RHEL ES3 coreutils-4.5.3 there is
> this comment: (where P is the command line parameters being evaluated,
> and POSIX textual version 1003.1-2001 is represented as the integer
> 200112):
>
> /* If P starts with `+' and the POSIX version predates 1003.1-2001,
> or if P starts with `-N' (where N is a digit), or `-l', then it
> is obsolescent. Return zero otherwise. */
>
> So, by setting _POSIX2_VERSION=200112 one should expect 'tail -1
> somefile' to barf. It doesn't. However, looking further at tail.c
> shows that parse_obsolescent_option() continues after determining
> obsolescence and correctly parses +N, -N despite knowing they are
> obsolete. (backwards compatibility == good)
>
> However, if POSIXLY_CORRECT is set in the environment, then tail will
> NOT force the backwards compatibility and the user will get an error
> like this:
>
> tail: `-1' option is obsolete; use `-n 1'
>
> -Jim P.
>
Ah Ha! So "unset POSIXLY_CORRECT" before running the installer may solve
the problem.
I ran into some issues installing perl modules after an upgrade. The
solution was "set LANG='C'" before starting CPAN process.
>
>
> _______________________________________________
> Ale mailing list
> Ale at ale.org
> http://www.ale.org/mailman/listinfo/ale
--
James P. Kinney III \Changing the mobile computing world/
CEO & Director of Engineering \ one Linux user /
Local Net Solutions,LLC \ at a time. /
770-493-8244 \.___________________________./
http://www.localnetsolutions.com
GPG ID: 829C6CA7 James P. Kinney III (M.S. Physics)
<jkinney at localnetsolutions.com>
Fingerprint = 3C9E 6366 54FC A3FE BA4D 0659 6190 ADC3 829C 6CA7
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part
More information about the Ale
mailing list