develooper Front page | perl.module-authors | Postings from March 2010

Re: ... is just needed temporarily during building or testing. Do you want to install it permanently (y/n) [yes]

Thread Previous | Thread Next
From:
David Golden
Date:
March 9, 2010 02:24
Subject:
Re: ... is just needed temporarily during building or testing. Do you want to install it permanently (y/n) [yes]
Message ID:
[email protected]
On Tue, Mar 9, 2010 at 4:37 AM, Gabor Szabo <[email protected]> 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

Thread Previous | Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at [email protected] | Group listing | About