Subject: | install problem on Win32 / nmake |
Hi,
Automatic installation on Win32 failed. Reason : the Makefile.PL
generates the following line in Makefile :
test_dynamic :: pure_all
$(FULLPERLRUN) "-Iinc" "-MModule::Install::ExtraTests" "-e"
"Module::Install::ExtraTests::__harness('Test::Harness', (exists
\$$ENV{AUTHOR_TESTING} ? \$$ENV{AUTHOR_TESTING} : 0), 'xt/author', '',
'', $(TEST_VERBOSE), '$(INST_LIB)', '$(INST_ARCHLIB)')" $(TEST_FILES)
which fails under win32 nmake :
nmake test
Microsoft (R) Program Maintenance Utility Version 1.50
Copyright (c) Microsoft Corp 1988-94. All rights reserved.
D:\Perl\bin\perl.exe "-Iinc" "-MModule::Install::ExtraTests" "-e"
"Module::Install::ExtraTests::__harness('Test::Harness', (exists
\$ENV{AUTHOR_TESTING} ? \$ENV{AUTHOR_TESTING} : 0), 'xt/author', '', '',
0, 'blib\lib', 'blib\arch')" t/*.t
exists argument is not a HASH or ARRAY element at -e line 1.
NMAKE : fatal error U1077: 'C:\WINDOWS\system32\cmd.exe' : return code '0x9'
I had to manually fix the Makefile, removing the backslashes before
$$ENV, and then everything runs smoothly.
$(FULLPERLRUN) "-Iinc" "-MModule::Install::ExtraTests" "-e"
"Module::Install::ExtraTests::__harness('Test::Harness', (exists
$$ENV{AUTHOR_TESTING} ? $$ENV{AUTHOR_TESTING} : 0), 'xt/author', '', '',
$(TEST_VERBOSE), '$(INST_LIB)', '$(INST_ARCHLIB)')" $(TEST_FILES)