Beefy Boxes and Bandwidth Generously Provided by pair Networks
Pathologically Eclectic Rubbish Lister
 
PerlMonks  

How to install module with CPANPLUS without prompting?

by Anonymous Monk
on Aug 31, 2009 at 04:43 UTC ( #792280=perlquestion: print w/ replies, xml ) Need Help??
Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:

cpanp i Template ... Do you want to build the XS Stash module? [y]
I don't want to be prompted, but how?

Comment on How to install module with CPANPLUS without prompting?
Download Code
Re: How to install module with CPANPLUS without prompting?
by xdg (Monsignor) on Aug 31, 2009 at 05:04 UTC
    I don't want to be prompted, but how?

    It won't always work, but in most cases, you can set the PERL_MM_USE_DEFAULT environment variable and modules that use ExtUtils::MakeMaker's prompt function won't prompt and will use the default instead. So on *nix:

    $ PERL_MM_USE_DEFAULT=1 cpanp i Template

    -xdg

    Code written by xdg and posted on PerlMonks is public domain. It is provided as is with no warranties, express or implied, of any kind. Posted code may not have been tested. Use of posted code is at your own risk.

Re: How to install module with CPANPLUS without prompting?
by Anonymous Monk on Dec 12, 2011 at 02:10 UTC
      The command/action/"[Operations]" (-i) needs to come before the options ( skiptest), so
      cpanp -i --allow_build_interactivity=0 --skiptest Module Module Module + cpanp -i Module Module Module --allow_build_interactivity=0 --skipt +est

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: perlquestion [id://792280]
Approved by AnomalousMonk
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others surveying the Monastery: (8)
As of 2014-08-20 12:11 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The best computer themed movie is:











    Results (113 votes), past polls