On Tue, Mar 9, 2010 at 4:37 AM, Gabor Szabo <szab...@gmail.com> wrote:
> CPAN.pm is configured to automatically follow prerequsites but it
> still stops and ask the question
>
> ... is just needed temporarily during building or testing. Do you want
> to install it permanently (y/n) [yes]
>
> Why is that and can I configure the CPAN client to automatically
> answer yes to such questions?

http://search.cpan.org/~andk/CPAN-1.9402/lib/CPAN.pm#Config_Variables

  build_requires_install_policy
                     to install or not to install when a module is
                     only needed for building. yes|no|ask/yes|ask/no


Set that to "yes".

N.B. As of the latest CPAN.pm development version, the default for
that is now "yes", the default for the regular "prerequisites_policy"
is "follow", and if the latter is "follow" CPAN now automatically sets
the PERL_AUTOINSTALL for default dependencies.   That doesn't help
people with an existing config, but at least going forward it should
be less annoying to new users.

-- David

Reply via email to