James E Keenan wrote: > Ben Morrow wrote: >> PERL_MM_USE_DEFAULT=1 perl Makefile.PL</dev/null > > Thanks for the suggestion, Ben. > > It seems to work some of the time, but not all the time. > > For example, the first time my program called 'perl Makefile.PL' for > distribution 'F/FL/FLORA/Net-SSLeay', I got this: > > $ perl Makefile.PL > Cannot determine perl version info from lib/Net/SSLeay.pm > Cannot determine license info from lib/Net/SSLeay.pm > *** Found OpenSSL-0.9.7l installed in /usr > *** Be sure to use the same compiler and options to compile your > OpenSSL, perl, > and Net::SSLeay. Mixing and matching compilers is not supported. > Do you want to run external tests? > These tests *will* *fail* if you do not have network connectivity. [n] > > ... which would hang indefinitely in my automated environment. > > When, however, I tried your suggestion, it DWIMmed: > > $ PERL_MM_USE_DEFAULT=1 perl Makefile.PL </dev/null > Cannot determine perl version info from lib/Net/SSLeay.pm > Cannot determine license info from lib/Net/SSLeay.pm > *** Found OpenSSL-0.9.7l installed in /usr > *** Be sure to use the same compiler and options to compile your > OpenSSL, perl, > and Net::SSLeay. Mixing and matching compilers is not supported. > Do you want to run external tests? > These tests *will* *fail* if you do not have network connectivity. [n] n > Checking if your kit is complete... > Looks good > Writing Makefile for Net::SSLeay > > > However, when I tried running it on G/GR/GRICHTER/HTML-Embperl, I got this: > > $ PERL_MM_USE_DEFAULT=1 perl Makefile.PL </dev/null > > Build with support for Apache mod_perl?(y/n) [y]Searching for Apache > sources... > Look at .. > Look at ../src > Look at ./src > Apache source not found, enter path name or q to quit []Searching for > Apache sources... > Look at > Look at /src > Look at ./src > Apache source not found, enter path name or q to quit []Searching for > Apache sources... > > ... and so on indefinitely. > >
Setting PERL_MM_USE_DEFAULT directs "prompt" to not prompt but use the default. If someone is not using "prompt" it has no effect so I guess some of the Makefile.PL files prompt without using prompt. Martin -- Martin J. Evans Easysoft Limited http://www.easysoft.com