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

I was going to look if there was a method specific to those distributions — there could be an argument or an environment var — but neither URI nor LWP ask questions during build, test and install?!

I checked the installer sources.
I built, tested and installed on Debian.
I built, tested and installed on Windows.

Update: Specified how I came to my finding.

  • Comment on Re: simpler way to silence modules that ask install-time questions

Replies are listed 'Best First'.
Re^2: simpler way to silence modules that ask install-time questions
by perrin (Chancellor) on Feb 19, 2009 at 21:12 UTC
    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.

      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.