Perl:cpan force install 在单个命令中不起作用
Perl: cpan force install not working in single command
我想要 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
。我该如何进行?
使用-f
选项
来自man cpan
:
-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:
% cpan -f -i Module::Foo
请尝试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
将为您提供更多详细信息。
我想要 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
。我该如何进行?
使用-f
选项
来自man cpan
:
-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:% cpan -f -i Module::Foo
请尝试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
将为您提供更多详细信息。