Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 13 Feb 2022 21:21:11 +0100
From:      "Herbert J. Skuhra" <herbert@gojira.at>
To:        freebsd-questions@freebsd.org
Subject:   Re: FreeBSD 12.3-R perl5.34
Message-ID:  <YgloN3%2BxSl2Kt0Wv@mail.bsd4all.net>
In-Reply-To: <4c173632-230e-7b41-6a68-f1b263bc21f0@holgerdanske.com>
References:  <4c173632-230e-7b41-6a68-f1b263bc21f0@holgerdanske.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On Sun, Feb 13, 2022 at 12:08:28PM -0800, David Christensen wrote:
> freebsd-questions:
> 
> I recently installed FreeBSD:
> 
> 2022-02-13 12:03:20 toor@f4 ~
> # freebsd-version ; uname -a
> 12.3-RELEASE
> FreeBSD f4.tracy.holgerdanske.com 12.3-RELEASE FreeBSD 12.3-RELEASE r371126
> GENERIC  amd64
> 
> 
> Then I installed Perl:
> 
> 2022-02-13 11:54:35 toor@f4 ~
> # pkg install perl5.34
> Updating FreeBSD repository catalogue...
> FreeBSD repository is up to date.
> All repositories are up to date.
> The following 1 package(s) will be affected (of 0 checked):
> 
> New packages to be INSTALLED:
>         perl5.34: 5.34.0
> 
> Number of packages to be installed: 1
> 
> The process will require 60 MiB more space.
> 14 MiB to be downloaded.
> 
> Proceed with this action? [y/N]: y
> [1/1] Fetching perl5.34-5.34.0.pkg: 100%   14 MiB   3.0MB/s    00:05
> Checking integrity... done (0 conflicting)
> [1/1] Installing perl5.34-5.34.0...
> [1/1] Extracting perl5.34-5.34.0: 100%
> 
> 
> But Perl does not work:
> 
> 2022-02-13 11:59:02 toor@f4 ~/f4.tracy.holgerdanske.com
> # perl -v
> -bash: perl: command not found
> 
> 2022-02-13 12:05:30 toor@f4 ~
> # locate / -name perl | egrep 'perl$'
> /usr/local/lib/perl5/5.34/perl
> /usr/local/lib/perl5/site_perl
> /usr/local/share/bash-completion/completions/perl
> /usr/local/share/bash-completion/helpers/perl
> /usr/local/lib/perl5/5.34/perl
> /usr/local/lib/perl5/site_perl
> /usr/local/share/bash-completion/completions/perl
> /usr/local/share/bash-completion/helpers/perl
> 
> 
> Comments or suggestions?

The default perl version is still 5.32. If you want 5.34 you have to set 

DEFAULT_VERSIONS+=      perl5=5.34

in /etc/make.conf and use ports.

Or you can use poudriere to build your own package repository.

--
Herbert



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?YgloN3%2BxSl2Kt0Wv>