【问题标题】:macOS Big Sur: Unexpected product version 11.1. How to patch perlbrew?macOS Big Sur:意外的产品版本 11.1。如何修补 perlbrew?
【发布时间】:2020-12-16 22:33:05
【问题描述】:

我刚刚将我的 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 开发分支中修复,请参阅 Add 11.x support for darwin.sh。那么现在如何将此修复程序向后移植到 Perl 5.32.0 并与 perlbrew 一起应用?

这里可以使用patchperl吗?

【问题讨论】:

    标签: macos perl perlbrew


    【解决方案1】:

    好像我只好跑了:

    $ 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
    

    【讨论】:

    • 这是否解决了this?
    • @ikegami 不,它没有。我添加了一个issue
    • 糟糕,我声称的元票实际上是一个拉取请求,并且是一个封闭(合并)的请求。我已经更新了我之前的答案以参考您的票证。
    猜你喜欢
    • 2021-04-23
    • 2021-03-31
    • 2021-04-15
    • 1970-01-01
    • 2021-06-05
    • 1970-01-01
    • 1970-01-01
    • 2022-11-09
    • 1970-01-01
    相关资源
    最近更新 更多