简体   繁体   English

如何告诉CPAN :: Shell为模块安装所有依赖项?

[英]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 installs. 其中$ m是脚本安装的模块名称。 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? 但是,我希望在安装模块时不提示用户是否应安装其他依赖项(是否安装可选的deps),我该怎么做?

What is your setting for prerequisites_policy in CPAN::Config? 您对CPAN :: Config中的prerequisites_policy的设置是什么? That should be follow and not ask . 应该follow而不是ask

Found an answer here . 在这里找到答案。

Set PERL_MM_USE_DEFAULT=1 in your environment. 在您的环境中设置PERL_MM_USE_DEFAULT=1

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM