W dniu 2012-03-02 08:48, Mark Dootson pisze:
Hi,

See previous post 'Building on Windows with mingw resource bug'.

It gave patch to fix mingw windres issues.

Thx, the patch fixed windres problem, but another one have occured.

This is what I've done (first on Win7 & Strawberry 64-bit):

1.  First I have got PAR::Packer:
    cpan> get PAR::Packer
2.  Then I have applied your patch to Makefile.PL and pp.rc.
3.  Next I have executed portableshell.bat and:
    cd c:\myperl\cpan\build\PAR-Packer-1.013-qeIsra
    perl Makefile.PL
    dmake
4.  No error till this time, so:
    dmake test

This command generated error info:
    c:\myperl\cpan\build\PAR-Packer-1.013-qeIsra\blib\script\perl.exe
not recognized as a batch of executable (or something similar in English, I've got Win PL and this info was in Polish of course)

5. So I must have copied perl.exe, perl5.14.2.exe and perl14.dll to
   PAR-Packer-1.013-qeIsra/blib/script.
6. And again:
   dmake test

This time I have got:

Can't locate strict.pm in @INC (@INC contains:
C:\myperl\cpan\build\PAR-Packer-1.013-qeIsra\blib\lib
C:\myperl\cpan\build\PAR-Packer-1.013-qeIsra\contrib\automated_pp_test
C:\myperl\cpan\build\PAR-Packer-1.013-qeIsra\inc
C:\myperl\cpan\build\PAR-Packer-1.013-qeIsra\blib\lib
C:\myperl\cpan\build\PAR-Packer-1.013-qeIsra\blib\arch .)
at C:\myperl\cpan\build\PAR-Packer-1.013-qeIsra\blib\script/pp line 3.

Strange, but obviously there is no path to C:\myperl\perl\lib in @INC, so:

7.  set PERL5LIB=C:\myperl\perl\lib
    dmake test

With another module missing:

t/20-pp.t ... Can't locate Archive/Zip.pm in @INC (@INC contains: [...])

OK, Archive::Zip is in perl\vendor\lib, then:

8.  set PERL5LIB=%PERL5LIB%;C:\myperl\perl\vendor\lib
    dmake test

Heh, now Module::ScanDeps is missing so let's add another dir to PERL5LIB:

9.  set PERL5LIB=%PERL5LIB%;C:\myperl\perl\site\lib
    dmake test

Result:

t/20-pp.t .... Use of uninitialized value $d[-1] in string eq
at C:\myperl\perl\vendor\lib/Portable.pm line 191.
Attempt to reload Scalar/Util.pm aborted.
Compilation failed in require at C:\myperl\perl\lib/Compress/Zlib.pm line 8.
[...]
Compilation failed in require at -e line 358.
Can't locate Win32.pm in @INC (@INC contains: .)
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^~
at C:\myperl\perl\lib/Cwd.pm line 758.
BEGIN failed--compilation aborted.
END failed--call queue aborted at -e line 968.

I gave up here :(

I have tried to repeat above steps on Win7 64-bit and Strawberry 32-bit. Unfortunately I have got several windowed errors info (in English something like: "perl.exe - Application error", "Application did not properly executed (0xc000007b)" during `dmake test'.

Last try was to repeat PAR::Packer installation on Win XP 32 bit and result was the same: Can't locate Win32.pm [...] (@INC contains: .)

Which file must I edit now to set @INC properly?

--
Greetings
Jarek Lubczyński

There are 10 kinds of people:
Those who understand binary and those who don't

Reply via email to