Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

time for installusrbinperl...?

0 views
Skip to first unread message

Jarkko Hietaniemi

unread,
Sep 18, 2002, 11:58:18 PM9/18/02
to perl5-...@perl.org
....to default from "define" to "undef"?

We have new Mac OS X hints cooking (library directories will have the
Perl version in them, yea) (as everyone else has), but as a part of
that discussion Andy Dougherty pointed out that it may be time to
disable the 'installusrbinperl' default simply because so many UNIX
vendors already ship Perl, and not only for users' benefit, also for
the benefit of the OS, and if we come and stomp our (probably newer)
version of Perl over the vendor one, things go bang. Or at least puff.

(No, I don't think there's much point in trying to do heuristics (i.e.
guessing) of "whether the /usr/bin/perl is a vendor perl or just some
random older installation of Perl".)

--
Jarkko Hietaniemi <j...@iki.fi> http://www.iki.fi/jhi/ "There is this special
biologist word we use for 'stable'. It is 'dead'." -- Jack Cohen

Dan Kogai

unread,
Sep 19, 2002, 12:29:24 AM9/19/02
to perl5-...@perl.org
On Thursday, Sep 19, 2002, at 12:58 Asia/Tokyo, Jarkko Hietaniemi wrote:
> ....to default from "define" to "undef"?

I vote for it. I wonder how come no one ever proposed this.

> We have new Mac OS X hints cooking (library directories will have the
> Perl version in them, yea) (as everyone else has), but as a part of
> that discussion Andy Dougherty pointed out that it may be time to
> disable the 'installusrbinperl' default simply because so many UNIX
> vendors already ship Perl, and not only for users' benefit, also for
> the benefit of the OS, and if we come and stomp our (probably newer)
> version of Perl over the vendor one, things go bang. Or at least puff.

I always -Uinstallusrbinperl explicitly but shorter the Configure line
the more welcome. Let's give /usr to the OS and take
(/usr/local|/opt/|/usr/pkg).

I've been using perl and Unixen long enough to realize that both come
with enough ropes to hang your own self (and so I did so many times and
I'm lucky to be still alive) so easily and implicit -Dinstallusrbinperl
is definitely one of those.

Dan the Man with too many perls to configure-make-installed

Johan Vromans

unread,
Sep 19, 2002, 1:53:27 AM9/19/02
to Dan Kogai, perl5-...@perl.org
Dan Kogai <dank...@dan.co.jp> writes:

Although -Uinstallusrbinperl may be yet another piece of rope. Which
perl you get then depends on whether /usr/local/bin (or whatever)
comes before or after /usr/bin in your PATH. I doubt systems (and
users) are consistent in placing /usr/local/bin before /usr/bin.
But I must admit that I do not see a really waterproof solution...

-- Johan

Joe McMahon

unread,
Sep 19, 2002, 10:27:08 AM9/19/02
to Kay Röpke, j...@iki.fi, perl5-...@perl.org
On Thu, 19 Sep 2002, Kay Röpke wrote:
> On Thursday, Sep 19, 2002, at 05:58 Europe/Berlin, Jarkko Hietaniemi
> wrote:
>
> > ....to default from "define" to "undef"?
>
Gets my vote too. It got me as an inexperienced sysadmin (when first
installing Perl 5, as a matter of fact). All the Perl 4 scripts broke and
people were Not Happy.

--- Joe M.

Kay röpke

unread,
Sep 19, 2002, 10:21:52 AM9/19/02
to j...@iki.fi, perl5-...@perl.org

On Thursday, Sep 19, 2002, at 05:58 Europe/Berlin, Jarkko Hietaniemi
wrote:

> ....to default from "define" to "undef"?


sounds very reasonable to me...I don't even dare to remember how often
I forgot -Uinstallusrbinperl - only
to notice at the very last keystroke before 'make instal<gasp here>' :-(

kay

Kurt D. Starsinic

unread,
Sep 20, 2002, 6:43:53 PM9/20/02
to Jarkko Hietaniemi, perl5-...@perl.org
On Sep 19, Jarkko wrote:
> ....to default from "define" to "undef"?

Please. It's never caused me anything but grief.

- Kurt

H.Merijn Brand

unread,
Sep 26, 2002, 3:24:20 PM9/26/02
to j...@iki.fi, Perl 5 Porters
On Thu 19 Sep 2002 05:58, Jarkko Hietaniemi <j...@iki.fi> wrote:
> ....to default from "define" to "undef"?
>
> We have new Mac OS X hints cooking (library directories will have the
> Perl version in them, yea) (as everyone else has), but as a part of
> that discussion Andy Dougherty pointed out that it may be time to
> disable the 'installusrbinperl' default simply because so many UNIX
> vendors already ship Perl, and not only for users' benefit, also for
> the benefit of the OS, and if we come and stomp our (probably newer)
> version of Perl over the vendor one, things go bang. Or at least puff.
>
> (No, I don't think there's much point in trying to do heuristics (i.e.
> guessing) of "whether the /usr/bin/perl is a vendor perl or just some
> random older installation of Perl".)

Too late to veto - which I would not have done anyway :) - but I
wholeheartedly agree. Patch is in (17925/17926) and checked.

FWIW I have the 'installusrbinperl="$undef"' in my Policy.sh :)

--
H.Merijn Brand Amsterdam Perl Mongers (http://amsterdam.pm.org/)
using perl-5.6.1, 5.8.0 & 633 on HP-UX 10.20 & 11.00, AIX 4.2, AIX 4.3,
WinNT 4, Win2K pro & WinCE 2.11. Smoking perl CORE: smo...@perl.org
http://archives.develooper.com/daily...@perl.org/ per...@perl.org
send smoke reports to: smokers...@perl.org, QA: http://qa.perl.org


Abigail

unread,
Oct 2, 2002, 10:56:36 AM10/2/02
to Joe McMahon, Kay Röpke, j...@iki.fi, perl5-...@perl.org


This is why I typically create a separate account (usually called
'camel') which I use to install Perl with. If possible, I install it
in /opt/perl. /usr is for root, and all that can happen would I forget
a -Uinstallusrbinperl is an error message.

It also means that if I install modules from CPAN, I don't have to
run 'make install' as root.

Abigail

0 new messages