perl --version is not at perl5.36 but at perl5.34 yet both are listed as active
Bill Cole
macportsusers-20171215 at billmail.scconsult.com
Mon Aug 14 01:38:43 UTC 2023
On 2023-08-13 at 20:21:23 UTC-0400 (Sun, 13 Aug 2023 17:21:23 -0700)
Kenneth Wolcott <kennethwolcott at gmail.com>
is rumored to have said:
> Hi;
>
> I'm confused about what Perl I have installed vi MacPorts and what
> is active and what I can use.
The short simple answer is: BOTH.
>
> port installed | grep perl5
> ack @3.6.0_0+perl5_34
> ack @3.7.0_0+perl5_34 (active)
> docbook2X @0.8.8_11+perl5_34 (active)
> git
> @2.39.1_0+credential_osxkeychain+diff_highlight+doc+pcre+perl5_34
> git
> @2.39.2_0+credential_osxkeychain+diff_highlight+doc+pcre+perl5_34
> git
> @2.40.0_0+credential_osxkeychain+diff_highlight+doc+pcre+perl5_34
> git
> @2.40.1_0+credential_osxkeychain+diff_highlight+doc+pcre+perl5_34
> git
> @2.41.0_0+credential_osxkeychain+diff_highlight+doc+pcre+perl5_34
> (active)
> icoutils @0.32.3_1+perl5_34 (active)
> net-snmp @5.9.1_1+perl5_34+ssl (active)
> ossp-uuid @1.6.2_13+perl5_34+universal
> ossp-uuid @1.6.2_13+perl5_34 (active)
> perl5 @5.34.1_0+perl5_34 (active)
> perl5.34 @5.34.1_0 (active)
> perl5.36 @5.36.0_0
> perl5.36 @5.36.1_0 (active)
> po4a @0.66_0+perl5_34 (active)
> xmltoman @0.4_1+perl5_34 (active)
>
> which perl
> /opt/local/bin/perl
>
> perl --version | head -2 | tail -1
> This is perl 5, version 34, subversion 1 (v5.34.1) built for
> darwin-thread-multi-2level
Note the illuminating output of "ls -l /opt/local/bin/perl*"
Which version is pointed to by the 'perl' symlink is determined by the
variant of the perl5 port.
> It looks like many perl5-based utilities are not yet updated to
> perl5.36, yet I'd like to use perl5.36 when I'm writing a perl
> program.
The layout of perl's components allows you to have multiple independent
versions installed without interfering with each other. In theory.
> I apparently don't understand enough about how to use "port select"
> even after several readings.
Yeah, I don't think the perl-select port works.
--
Bill Cole
bill at scconsult.com or billcole at apache.org
(AKA @grumpybozo and many *@billmail.scconsult.com addresses)
Not Currently Available For Hire
More information about the macports-users
mailing list