Tim Bunce wrote:
I'd appreciate it if someone could look into why sometimes Makefile.PL
fails on windows.
There are four reports here http://testers.cpan.org/show/DBI.html#DBI-1.48
For example http://www.nntp.perl.org/group/perl.cpan.testers/204712
It's not consistent though, as there are reports of success as well.
I read those reports.
They seem to come from the same guy.
The exact error message is localized, but can be reproduced by
simply having nmake.exe in your $PATH without microsoft compiler
executable (cl.exe).
Here it is a similar message after running build process
on one of our systems, *without* setting vcvars32.
-------------------8<------------------
Checking if your kit is complete...
Looks good
I see you're using perl 5.008 on MSWin32-x86-multi-thread, okay.
Remember to actually *read* the README file!
Use 'make' to build the software (dmake or nmake on Windows).
[...]
Writing Makefile for DBI
C:\Documents and Settings\cosimo\Documenti\CPAN\DBI-1.48>nmake
Microsoft (R) Program Maintenance Utility Version 1.40
Copyright (c) Microsoft Corp 1988-93. All rights reserved.
[...]
cp lib/DBD/ExampleP.pm blib\lib\DBD/ExampleP.pm
cp lib/DBI/ProfileData.pm blib\lib\DBI/ProfileData.pm
C:\prg\lng\indigoperl\perl\bin\perl.exe -p -e "s/~DRIVER~/Perl/g" ./Driv
er.xst > Perl.xsi
C:\prg\lng\indigoperl\perl\bin\perl.exe C:\prg\lng\indigoperl\perl\lib\E
xtUtils/xsubpp -typemap C:\prg\lng\indigoperl\perl\lib\ExtUtils\typemap -typema
p typemap Perl.xs > Perl.xsc && C:\prg\lng\indigoperl\perl\bin\perl.exe -MExtUt
ils::Command -e mv Perl.xsc Perl.c
cl -c -nologo -Gf -W3 -MD -DNDEBUG -O1 -DWIN32 -D_CONSOLE -DNO_STRICT
-DHAVE_DES_FCRYPT -DPERL_IMPLICIT_CONTEXT -DPERL_IMPLICIT_SYS -DUSE_PERLIO -DPE
RL_MSVCRT_READFIX -MD -DNDEBUG -O1 -DVERSION=\"1.48\" -DXS_VERSION=\"1.48\"
"-IC:\prg\lng\indigoperl\perl\lib\CORE" Perl.c
"cl" non รจ riconosciuto come comando interno o esterno,
un programma eseguibile o un file batch.
NMAKE : fatal error U1077: 'C:\WINDOWS\system32\cmd.exe' : return code '0x1'
Stop.
C:\Documents and Settings\cosimo\Documenti\CPAN\DBI-1.48>
-------------------8<------------------
I think it only means `cl' is an unknown command.
--
Cosimo