From owner-freebsd-questions Wed Jan 22 02:19:12 1997 Return-Path: Received: (from root@localhost) by freefall.freebsd.org (8.8.5/8.8.5) id CAA26701 for questions-outgoing; Wed, 22 Jan 1997 02:19:12 -0800 (PST) Received: from gatekeeper.barcode.co.il (gatekeeper.barcode.co.il [192.116.93.17]) by freefall.freebsd.org (8.8.5/8.8.5) with ESMTP id CAA26680 for ; Wed, 22 Jan 1997 02:19:03 -0800 (PST) Received: (from smap@localhost) by gatekeeper.barcode.co.il (8.7.5/8.6.12) id MAA17062; Wed, 22 Jan 1997 12:17:51 +0200 (IST) X-Authentication-Warning: gatekeeper.barcode.co.il: smap set sender to using -f Received: from localhost.barcode.co.il(127.0.0.1) by gatekeeper.barcode.co.il via smap (V1.3) id sma017059; Wed Jan 22 12:17:39 1997 Message-ID: <32E5E932.3B07@barcode.co.il> Date: Wed, 22 Jan 1997 12:17:22 +0200 From: Nadav Eiron X-Mailer: Mozilla 3.0 (X11; I; SunOS 5.5 sun4m) MIME-Version: 1.0 To: ajohn@cyberforge.com CC: freebsd-questions@freebsd.com Subject: Re: How to make Perl 5 the default... References: <199701220234.VAA10160@onramp.i95.net> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-questions@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk 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