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

标签 perl cpan

我要 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/

相关文章:

perl - 分发 Perl 应用程序

perl - Perl 中的字符串化结构

regex - 无法使用正则表达式删除字符

html - 使用 Perl 从 HTML 文件中删除内联 CSS

perl - Try::Tiny 无法在 perl 中使用 exit 语句

perl-module - 使用 cpanm 安装 Perl 模块

Perl:将值列表声明为常量

perl - 我的 sendmail 日志获取 TLS 设置失败

perl - %hash和\%hash作为参数之间的区别?

perl - cpan 和 cpanm 有什么区别?