How can we get the internal software for perl working, which exists in the operating system but no longer works with the M1?
How can we motivate Apple to fix the operation of the perl language, which was broken with the M1 upgrade?
How can we motivate Apple to fix the operation of the perl language, which was broken with the M1 upgrade?
Agree with Bob Harris. Understand that Apple has stated back in the Catalina release timeframe that the perl, python, and ruby scripting solutions would be removed from future releases of macOS. Python 2.7.18 was just removed in Monterey 12.3.1, and Apple's position is that once these are removed, the user must maintain their own installations. That might be perlbrew, or some other management software, in the case of perl 5. And then there is Raku (aka Perl 6).
Agree with Bob Harris. Understand that Apple has stated back in the Catalina release timeframe that the perl, python, and ruby scripting solutions would be removed from future releases of macOS. Python 2.7.18 was just removed in Monterey 12.3.1, and Apple's position is that once these are removed, the user must maintain their own installations. That might be perlbrew, or some other management software, in the case of perl 5. And then there is Raku (aka Perl 6).
Perl is working just fine on my M1 Max 16" MacBook Pro running Monterey 12.4
Perhaps you have another version of perl installed and it is found earlier in your PATH
/usr/bin/perl -v
This is perl 5, version 30, subversion 3 (v5.30.3) built for darwin-thread-multi-2level
(with 2 registered patches, see perl -V for more detail)
Copyright 1987-2020, 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 http://www.perl.org/http://www.perl.org/,
The Monterey 12.4 version of Perl is also compiled for multiple architectures
file /usr/bin/perl
/usr/bin/perl: Mach-O universal binary with 2 architectures: [x86_64:Mach-O 64-bit executable x86_64
- Mach-O 64-bit executable x86_64] [arm64e:Mach-O 64-bit executable arm64e
- Mach-O 64-bit executable arm64e]
/usr/bin/perl (for architecture x86_64): Mach-O 64-bit executable x86_64
/usr/bin/perl (for architecture arm64e): Mach-O 64-bit executable arm64e
To explain in more detail, on the new MacBook Air, when I enter "perl -v" on the command line, the perl software (that is actually there) responds that it doesn't like the [unknown] M1 processor, and quits . Apple left the old perl compiler in, but it doesn't work with the M1!!! Jeez!
THANK YOU! In summary, there are multiple copies of the perl interpreter within the system. Some just don't work (for whatever reason), and I was trying to use one that doesn't work. So, I stand corrected - perl does still work, if you choose the correct one. Thanks to everyone who responded here!
Web search finds: https://editrocket.com/articles/perl_mac_os_x.html
This should apply to macOS as well.
THANK YOU! Turns out, Apple has a number of versions on disk, some of which don't work with the M1.
How can we get the internal software for perl working, which exists in the operating system but no longer works with the M1?