in reply to Re: simpler way to silence modules that ask install-time questions
in thread simpler way to silence modules that ask install-time questions

URI was a mistake. When I run the Makefile.PL for LWP though, it asks me if I want to install lwp-request. (Maybe you already have it.) This can be suppressed with a -n option. However, there are others that do this kind of chatting, and it would be nice to have a solution that works even when they don't provide their own bypass switch.
  • Comment on Re^2: simpler way to silence modules that ask install-time questions

Replies are listed 'Best First'.
Re^3: simpler way to silence modules that ask install-time questions
by Corion (Patriarch) on Feb 19, 2009 at 21:53 UTC

    I think the current LWP doesn't ask anymore. If a module is well-behaved, it will use ExtUtils::MakeMaker::prompt, which knows when a user is at the terminal and when not. There are badly behaved modules, like (I think) Apache::Request, which will enter a potentially infinite loop asking forever (and again) for the location of httpd. Those modules are badly programmed and nothing short of solving the halting problem will provide a general solution for these.

    If you're really interested in an evolving solution, have a look at andk's Distroprefs. He maintains snippets of Expect or other canned behaviour, like answers, patches or settings for many distributions, and you can maintain your private set as well, yourself. They get (almost) automatically integrated into your run of the cpan shell.