开发者

How can I tell CPAN::Shell to install all dependencies for a module?

I currently have this on a script:

 CPAN::Shell->rematein("notest", "install", "$m");

Where $m is a module name the script ins开发者_高级运维talls. However, I want the module to install without prompting the user whether additional dependencies should be installed (optional deps or not), how can I do that?


What is your setting for prerequisites_policy in CPAN::Config? That should be follow and not ask.


Found an answer here.

Set PERL_MM_USE_DEFAULT=1 in your environment.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜