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