Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 10 Aug 2024 10:39:57 -0700
From:      David Christensen <dpchrist@holgerdanske.com>
To:        questions@freebsd.org
Subject:   Re: -bash: perl: command not found
Message-ID:  <b66f3f51-8371-4c51-a709-1b2f94387aeb@holgerdanske.com>
In-Reply-To: <3bdb026e-23e1-47ff-be07-adb60c3526c9@holgerdanske.com>
References:  <3bdb026e-23e1-47ff-be07-adb60c3526c9@holgerdanske.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On 8/10/24 10:25, David Christensen wrote:
> 2024-08-10 10:14:07 toor@f6 ~
> # pkg install perl5.40
> <snip>
> 
> 2024-08-10 10:19:59 toor@f6 ~
> # perl -v
> -bash: perl: command not found


I should have installed the metapackage (?) "perl5":

2024-08-10 10:37:01 toor@f6 ~
# pkg remove perl5.40
Checking integrity... done (0 conflicting)
Deinstallation has been requested for the following 1 packages (of 0 
packages in the universe):

Installed packages to be REMOVED:
	perl5.40: 5.40.0

Number of packages to be removed: 1

The operation will free 64 MiB.

Proceed with deinstalling packages? [y/N]: y
[1/1] Deinstalling perl5.40-5.40.0...
[1/1] Deleting files for perl5.40-5.40.0: 100%

2024-08-10 10:37:10 toor@f6 ~
# pkg install perl5
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: 5.36.3_1

Number of packages to be installed: 1

The process will require 61 MiB more space.
15 MiB to be downloaded.

Proceed with this action? [y/N]: y
[1/1] Fetching perl5-5.36.3_1.pkg: 100%   15 MiB   5.1MB/s    00:03
Checking integrity... done (0 conflicting)
[1/1] Installing perl5-5.36.3_1...
[1/1] Extracting perl5-5.36.3_1: 100%

2024-08-10 10:37:22 toor@f6 ~
# perl -v

This is perl 5, version 36, subversion 3 (v5.36.3) built for 
amd64-freebsd-thread-multi

Copyright 1987-2023, Larry Wall

Perl may be copied only under the terms of either the Artistic License 
or the
GNU General Public License, which may be found in the Perl 5 source kit.

Complete documentation for Perl, including FAQ lists, should be found on
this system using "man perl" or "perldoc perl".  If you have access to the
Internet, point your browser at https://www.perl.org/, the Perl Home Page.


David




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?b66f3f51-8371-4c51-a709-1b2f94387aeb>