macOS Big Sur:意外的产品版本11.1.如何修补perlbrew



我刚刚将我的Macbook Air从10.15更新到11.1,然后尝试安装带有perlbrew:的perl 5.32

$ perlbrew install perl-5.32.0
Installing /Users/hakonhaegland/perl5/perlbrew/build/perl-5.32.0/perl-5.32.0 into ~/perl5/perlbrew/perls/perl-5.32.0
This could take a while. You can run the following command on another shell to track the status:
tail -f ~/perl5/perlbrew/build.perl-5.32.0.log
Installation process failed. To spot any issues, check
/Users/hakonhaegland/perl5/perlbrew/build.perl-5.32.0.log

构建日志显示:

[...]
Which of these apply, if any? [darwin]
*** Unexpected product version 11.1.
***
*** Try running sw_vers and see what its ProductVersion says.
##### Brew Failed #####

幸运的是,这个问题已经在Perl开发分支中得到了修复,请参阅Add11.x对darwin.sh的支持。那么,现在如何将这个修复程序后移植到Perl5.32.0并与perlbrew一起应用呢?

patchperl可以在这里使用吗?

似乎我只需要运行:

$ perlbrew install-patchperl
/Users/hakonhaegland/perl5/perlbrew/bin/patchperl already exists, are you sure to override ? [y/N] [N] y
patchperl is installed to
/Users/hakonhaegland/perl5/perlbrew/bin/patchperl

然后重新运行

$ perlbrew install perl-5.32.0

最新更新