Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 22 Jan 1997 12:17:22 +0200
From:      Nadav Eiron <nadav@barcode.co.il>
To:        ajohn@cyberforge.com
Cc:        freebsd-questions@freebsd.com
Subject:   Re: How to make Perl 5 the default...
Message-ID:  <32E5E932.3B07@barcode.co.il>
References:  <199701220234.VAA10160@onramp.i95.net>

next in thread | previous in thread | raw e-mail | index | archive | help
Anil John wrote:
> 
> Greetings,
> 
> When I set up my FreeBSD box (2.1.5) I had installed the perl5 port
> that came on the CD rom.  The only problem now is that when I do a
> 'perl -v', the system tells me that I am running Perl v4.0.
> 
> There seems to be a /usr/share/perl (perl4) directory and a
> /usr/local/lib/perl5 (Perl5 ?).

Those have nothing to do with the perl binary.

> 
> There is a perl executable in /usr/bin

There should also be a perl5.003 (or something like that) in
/usr/local/bin.

> 
> How do I set it up so that I am running perl5 as my default?  I am
> new to unix, so step by step explantions would be appreciated :)
> 
> Anil
One way would be:
su
# cd /usr/bin
# mv perl perl4
# ln -s /usr/local/bin/perl5.003 perl

This would make a link names /usr/bin/perl that will point to the perl5
binary. See man ln.

Nadav



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?32E5E932.3B07>