我刚刚将我的 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 开发分支中修复了,参见添加对 darwin.sh 的 11.x 支持。那么这个修复现在如何向后移植到 Perl 5.32.0 并与 perlbrew 一起应用呢?
Can 补丁程序在这里使用?
看来我只需要跑:
$ 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
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)