gpt4 book ai didi

Perl:cpan force install 在单个命令中不起作用

转载 作者:行者123 更新时间:2023-12-03 15:10:57 32 4
gpt4 key购买 nike

我要 force install perl 模块。当我这样做时,安装成功:

cpan shell -- CPAN exploration and modules installation (v2.00)
Enter 'h' for help.

cpan[1]> force install Net::DNS::SEC

但是当我这样做时,它失败了:
root@ubuntu:~# cpan force install Net::DNS::SEC

Warning: Cannot install force, don't know what it is.
Try the command

i /force/

...
...

Running make install
make test had returned bad status, won't install without force

我需要运行 cpan force install在一个命令中。我该如何进行?

最佳答案

请尝试cpan -fi Net::DNS::SEC 标志的含义:

  • f: Force the specified action, when it normally would have failed. Use this to install a module even if its tests fail. When you use this option, -i is not optional for installing a module when you need to force it.

  • i: Install the specified modules.

cpan -h将为您提供更多详细信息。

关于Perl:cpan force install 在单个命令中不起作用,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/37482732/

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