开发者

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

开发者 https://www.devze.com 2022-12-10 06:37 出处:网络
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 wi

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

精彩评论

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