Beefy Boxes and Bandwidth Generously Provided by pair Networks
Syntactic Confectionery Delight
 
PerlMonks  

Re: How to not Prompt when Installing a Module

by shevek (Beadle)
on Oct 26, 2010 at 18:45 UTC ( [id://867521]=note: print w/replies, xml ) Need Help??


in reply to How to not Prompt when Installing a Module

Bring up a CPAN shell:

perl -MCPAN -e shell

Run these two commands in the CPAN shell:

o conf prerequisites_policy follow

o conf commit

You should exit and re-start the CPAN shell, and attempt to install a module. All dependencies should be automatically confirmed.

You may still have to answer non-module install related questions-- such as connecting to the internet.

Line 1 changes your dependency policy to follow instead of ask. Line 2 persists the change to your CPAN configuration file.

  • Comment on Re: How to not Prompt when Installing a Module

Replies are listed 'Best First'.
Re^2: How to not Prompt when Installing a Module
by Anonymous Monk on Oct 26, 2010 at 20:05 UTC
    Thanks. I did what you wrote. And still the problem exists. Is it possible that it will still ask that question if the module of a dependent module has dependencies?

      Can you specify which module? Also, you could turn off all questions by setting some env variables, but that only works if the modules are respecting the same vars.

      Also, can you share the message you are getting?

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://867521]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others taking refuge in the Monastery: (5)
As of 2024-04-18 07:46 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found