gpt4 book ai didi

perl - 卸载 Perl 错误 : Cannot remove due to the following packages that depend on it

转载 作者:行者123 更新时间:2023-12-02 08:32:53 24 4
gpt4 key购买 nike

我正在尝试将我的 Perl 版本从 5.14 升级到 5.20。

当我运行 perl 5.20 upgrade sudo pkg update system/runtime/perl@5.20 时出现此错误:

pkg update: No matching version of system/runtime/perl can be installed:
Reject: pkg://ms.system.com/system/runtime/perl@5.20.0,5.11-0.151006:20140604T182727Z
Reason: This version is excluded by installed incorporation pkg://perl.system.com/omniti/incorporation/perl-514-incorporation@5.14,5.11-0.151002:20120725T211507Z

因此,我尝试首先使用 sudo pkg uninstall system/incorporation/perl-514-incorporation 卸载当前的 5.14 版本并得到:

Creating Planpkg uninstall: Cannot remove 'pkg://perl.omniti.com/omniti/incorporation/perl-514-incorporation@5.14,5.11-0.151002:20120725T211507Z' due to the following packages that depend on it:
// A list of dependent packages

关于如何通过这个的任何想法?

最佳答案

强烈建议您不要尝试升级您的系统 perl。你的操作系统中的很多杂项都依赖于它,将它升级到一个新的主要版本将需要破坏很多东西。还要考虑到此升级还需要重建每个具有 XS 依赖项的 CPAN 模块。

更好的解决方案是使用 perlbrew在您的主目录中本地安装 perl-5.20.0。然后,您可以使用它来处理较新的 perl,而无需触及您的操作系统 perl。

关于perl - 卸载 Perl 错误 : Cannot remove due to the following packages that depend on it,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/24957771/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com