From nobody Sun Feb 13 20:37:39 2022 X-Original-To: questions@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 01779194BFE9 for ; Sun, 13 Feb 2022 20:37:53 +0000 (UTC) (envelope-from dpchrist@holgerdanske.com) Received: from holgerdanske.com (holgerdanske.com [IPv6:2001:470:0:19b::b869:801b]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-256) server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "holgerdanske.com", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4JxfLR6TPtz3DHn for ; Sun, 13 Feb 2022 20:37:51 +0000 (UTC) (envelope-from dpchrist@holgerdanske.com) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=holgerdanske.com; s=nov-20210719-112354; t=1644784663; bh=SEJJgJ+uIlPmWEHmHE3lYr/r/BHmude6Wx81Td17Jbo=; h=Received:Message-ID:Date:MIME-Version:User-Agent:Subject: Content-Language:To:References:From:In-Reply-To:Content-Type: Content-Transfer-Encoding; b=lTBkRxrcN6P+C6HA7W6+BOwX7C+79mkw7Z3GuBTqJUwrcum7BtpynuQxtMKZiJWcn eCTEUYocjedVWVExGDZcxtTBcWGW5prVgHN9kzUghRANsPpW4mOULKp0Snci6N8WFE Oddam6t5DZx+El2T9/ZCrvgJssLRPsHMZKlOZB1gr1MVLm3c3rOuNsvyBn3nODFEgQ mIszyHjcGGsBgaHdo1T/Vo8dziwDE6nu9W+PCnd17+5iu7CiW64iJNgB2Z8KyR9uqn 4Ju2jARLf8W4FVNEpCoaEUE5QB6Z7illICPj9Xiw19udy2UUYW+kLhWK5YZjuxGWzd nueDnPZcgFmoHUkBy3CHpqMynnbU2YEcX2Bw4PnMrhNNYj4dS8ypzM7DS9d36BNU/0 xpMZSx0aqzSDYrC0dcPQHsPAAf4IsA4XooSzk6E9/ZHiaRqrP9UHy4fHntiTnJccN5 LyxbX5leYmB/r5+DpVMD1ThhEHKwWaauhjaajeLLVc3yf+yZRt/klYq/dZy6pjtF2+ FiCvvW5CHsC4VNl1t+odYmk7ChFHQc3dNHb/YVLR5Oz7/7qiZ5blTmsgtpJZpt/VeV iOOGAMjEULTSKqDuUgopfpOZ11denTejPr6bGneMaYyVckblZR4JOgv4nj6uXqHltS Gzwd/GkrSxEedxgPsZfiZmUU= Received: from 99.100.19.101 (99-100-19-101.lightspeed.frokca.sbcglobal.net [99.100.19.101]) by holgerdanske.com with ESMTPSA (TLS_AES_128_GCM_SHA256:TLSv1.3:Kx=any:Au=any:Enc=AESGCM(128):Mac=AEAD) (SMTP-AUTH username dpchrist@holgerdanske.com, mechanism PLAIN) for ; Sun, 13 Feb 2022 12:37:43 -0800 Message-ID: Date: Sun, 13 Feb 2022 12:37:39 -0800 List-Id: User questions List-Archive: https://lists.freebsd.org/archives/freebsd-questions List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-questions@freebsd.org X-BeenThere: freebsd-questions@freebsd.org MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.5.0 Subject: Re: FreeBSD 12.3-R perl5.34 Content-Language: en-US To: questions@freebsd.org References: <4c173632-230e-7b41-6a68-f1b263bc21f0@holgerdanske.com> From: David Christensen In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Rspamd-Queue-Id: 4JxfLR6TPtz3DHn X-Spamd-Bar: --- Authentication-Results: mx1.freebsd.org; dkim=pass header.d=holgerdanske.com header.s=nov-20210719-112354 header.b=lTBkRxrc; dmarc=pass (policy=none) header.from=holgerdanske.com; spf=pass (mx1.freebsd.org: domain of dpchrist@holgerdanske.com designates 2001:470:0:19b::b869:801b as permitted sender) smtp.mailfrom=dpchrist@holgerdanske.com X-Spamd-Result: default: False [-4.00 / 15.00]; RCVD_VIA_SMTP_AUTH(0.00)[]; ARC_NA(0.00)[]; R_DKIM_ALLOW(-0.20)[holgerdanske.com:s=nov-20210719-112354]; MID_RHS_MATCH_FROM(0.00)[]; FROM_HAS_DN(0.00)[]; TO_MATCH_ENVRCPT_ALL(0.00)[]; R_SPF_ALLOW(-0.20)[+a:november.he.net]; MIME_GOOD(-0.10)[text/plain]; PREVIOUSLY_DELIVERED(0.00)[questions@freebsd.org]; TO_DN_NONE(0.00)[]; RCPT_COUNT_ONE(0.00)[1]; NEURAL_HAM_LONG(-1.00)[-1.000]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; DKIM_TRACE(0.00)[holgerdanske.com:+]; DMARC_POLICY_ALLOW(-0.50)[holgerdanske.com,none]; NEURAL_HAM_SHORT(-1.00)[-1.000]; MLMMJ_DEST(0.00)[questions]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+]; ASN(0.00)[asn:6939, ipnet:2001:470::/32, country:US]; RCVD_COUNT_TWO(0.00)[2]; RCVD_TLS_ALL(0.00)[] X-ThisMailContainsUnwantedMimeParts: N On 2/13/22 12:21, Herbert J. Skuhra wrote: > 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 Thank you for the reply. I use packages. I have never encountered DEFAULT_VERSIONS before, nor problems installing a Perl package. STFW this page indicates DEFAULT_VERSIONS is for ports users: https://wiki.freebsd.org/Ports/DEFAULT_VERSIONS DEFAULT_VERSIONS is the mechanism that allows the user to set or override which version of software they want to be used as the dependency for other ports. How do I determine which package is the default when there is more than one choice? 2022-02-13 12:34:58 toor@f4 ~ # pkg search perl | egrep '^perl5.+5.3' | sort perl5-5.32.1_1 Practical Extraction and Report Language perl5-devel-5.35.4.102 Practical Extraction and Report Language perl5.30-5.30.3_1 Practical Extraction and Report Language perl5.34-5.34.0 Practical Extraction and Report Language David