Malcolm Nooning wrote:


Steffen Mueller wrote:
Malcolm Nooning schrieb:
Running just the test did not pass the test phase, but it did unrap the .gz file into C:\perl\cpan\build\PAR-0.970_01, from which I could try to test it.

The "nmake test" passed, and the nmake install passed. However, it does not work.

---------------paste
C:\temp>pp -o aaa.exe aaa.pl

[...]

Umm, you do know that pp isn't part of PAR any more? If that fails, that shouldn't be really related to PAR (but to PAR::Packer).

Can you do "look ..." instead and then "perl Makefile.PL", "(n|d|)make test" and send me the output?

Steffen

 >you do know that pp isn't part of PAR any more
I remember the emails back and forth about it, but obviously I did not pay enough attention. I will have to reread them and/or RTFM to see how to make an executable now, since pp no longer works.

I did C:\perl\cpan\build>perl -MCPAN -e shell
and then within the cpan prompt, I did
cpan> look S/SM/SMUELLER/PAR-0.970_01.tar.gz
Then exited the cpan prompt, and did
perl Makefile.PL
nmake
nmake test

----------------paste results
C:\perl\cpan\build>perl -MCPAN -e shell
Set up gcc environment - 3.4.2 (mingw-special)

cpan shell -- CPAN exploration and modules installation (v1.70)
ReadLine support enabled


cpan> look S/SM/SMUELLER/PAR-0.970_01.tar.gz
CPAN: Storable loaded ok
Going to read C:\Perl\cpan\Metadata
 Database was generated on Tue, 09 Jan 2007 09:25:41 GMT

Trying to open a subshell in the build directory...
CPAN: Digest::MD5 loaded ok
CPAN: Compress::Zlib loaded ok
Checksum for C:\Perl\cpan\sources\authors\id\S\SM\SMUELLER\PAR-0.970_01.tar.gz ok
Scanning cache C:\Perl/cpan/build for sizes
Subroutine AUTOLOAD redefined at C:/perl/lib/Compress/Zlib.pm line 84.
Subroutine isaFilehandle redefined at C:/perl/lib/Compress/Zlib.pm line 106.
Subroutine isaFilename redefined at C:/perl/lib/Compress/Zlib.pm line 115.
Subroutine gzopen redefined at C:/perl/lib/Compress/Zlib.pm line 122.
Subroutine ParseParameters redefined at C:/perl/lib/Compress/Zlib.pm line 139.
Subroutine deflateInit redefined at C:/perl/lib/Compress/Zlib.pm line 205.
Subroutine inflateInit redefined at C:/perl/lib/Compress/Zlib.pm line 217.
Subroutine Compress::Zlib::deflateStream::deflateParams redefined at C:/perl/lib/Compress/Zlib.pm line 227.
Subroutine compress redefined at C:/perl/lib/Compress/Zlib.pm line 256.
Subroutine uncompress redefined at C:/perl/lib/Compress/Zlib.pm line 287.
Constant subroutine Compress::Zlib::MAGIC1 redefined at C:/perl/lib/constant.pm line 103. Constant subroutine Compress::Zlib::MAGIC2 redefined at C:/perl/lib/constant.pm line 103. Constant subroutine Compress::Zlib::OSCODE redefined at C:/perl/lib/constant.pm line 103. Constant subroutine Compress::Zlib::FTEXT redefined at C:/perl/lib/constant.pm line 103. Constant subroutine Compress::Zlib::FHCRC redefined at C:/perl/lib/constant.pm line 103. Constant subroutine Compress::Zlib::FEXTRA redefined at C:/perl/lib/constant.pm line 103. Constant subroutine Compress::Zlib::FNAME redefined at C:/perl/lib/constant.pm line 103. Constant subroutine Compress::Zlib::FCOMMENT redefined at C:/perl/lib/constant.pm line 103. Constant subroutine Compress::Zlib::NULL redefined at C:/perl/lib/constant.pm line 103. Constant subroutine Compress::Zlib::RESERVED redefined at C:/perl/lib/constant.pm line 103. Constant subroutine Compress::Zlib::MIN_HDR_SIZE redefined at C:/perl/lib/constant.pm line 103.
Subroutine memGzip redefined at C:/perl/lib/Compress/Zlib.pm line 326.
Subroutine _removeGzipHeader redefined at C:/perl/lib/Compress/Zlib.pm line 357.
Subroutine memGunzip redefined at C:/perl/lib/Compress/Zlib.pm line 416.
CPAN: Archive::Tar loaded ok
PAR-0.970_01/
PAR-0.970_01/inc/
PAR-0.970_01/inc/Test/
PAR-0.970_01/inc/Test/Builder.pm
PAR-0.970_01/inc/Test/Builder/
PAR-0.970_01/inc/Test/Builder/Module.pm
PAR-0.970_01/inc/Test/More.pm
PAR-0.970_01/inc/Module/
PAR-0.970_01/inc/Module/Install.pm
PAR-0.970_01/inc/Module/Install/
PAR-0.970_01/inc/Module/Install/AutoInstall.pm
PAR-0.970_01/inc/Module/Install/Makefile.pm
PAR-0.970_01/inc/Module/Install/Include.pm
PAR-0.970_01/inc/Module/Install/Metadata.pm
PAR-0.970_01/inc/Module/Install/WriteAll.pm
PAR-0.970_01/inc/Module/Install/Win32.pm
PAR-0.970_01/inc/Module/Install/Fetch.pm
PAR-0.970_01/inc/Module/Install/Base.pm
PAR-0.970_01/inc/Module/Install/Can.pm
PAR-0.970_01/inc/Module/AutoInstall.pm
PAR-0.970_01/lib/
PAR-0.970_01/lib/PAR.pm
PAR-0.970_01/lib/PAR/
PAR-0.970_01/lib/PAR/AutoLoaderFix.pm
PAR-0.970_01/lib/PAR/FAQ.pod
PAR-0.970_01/lib/PAR/Heavy.pm
PAR-0.970_01/lib/PAR/Environment.pod
PAR-0.970_01/lib/PAR/Tutorial.pod
PAR-0.970_01/MANIFEST
PAR-0.970_01/TODO
PAR-0.970_01/t/
PAR-0.970_01/t/hello.par
PAR-0.970_01/t/40-par-hashref.t
PAR-0.970_01/t/00-pod.t
PAR-0.970_01/t/Hello.pm
PAR-0.970_01/t/01-basic.t
PAR-0.970_01/t/50-autoloaderfix.t
PAR-0.970_01/META.yml
PAR-0.970_01/ChangeLog
PAR-0.970_01/AUTHORS
PAR-0.970_01/Makefile.PL
PAR-0.970_01/README
PAR-0.970_01/SIGNATURE
Removing previously used C:\Perl\cpan\build\PAR-0.970_01
Working directory is C:\Perl\cpan\build\PAR-0.970_01
Microsoft Windows XP [Version 5.1.2600]
(C) Copyright 1985-2001 Microsoft Corp.

C:\Perl\cpan\build\PAR-0.970_01>perl Makefile.PL
Set up gcc environment - 3.4.2 (mingw-special)
*** Module::AutoInstall version 1.03
*** Checking for Perl dependencies...
[Core Features]
- File::Temp        ...loaded. (0.16 >= 0.05)
- Compress::Zlib    ...loaded. (1.42 >= 1.16)
- Archive::Zip      ...loaded. (1.16 >= 1)
- PAR::Dist         ...loaded. (0.21 >= 0.21)
[Digital signature support]
- Digest            ...loaded. (1.05)
- Module::Signature ...loaded. (0.53)
*** Module::AutoInstall configuration finished.
Checking if your kit is complete...
Looks good
Writing Makefile for PAR

C:\Perl\cpan\build\PAR-0.970_01>nmake

Microsoft (R) Program Maintenance Utility Version 7.00.9466
Copyright (C) Microsoft Corporation.  All rights reserved.

Cannot chmod blib\lib: at C:/perl/lib/ExtUtils/Command.pm line 241.
Cannot chmod blib\arch\auto\PAR: at C:/perl/lib/ExtUtils/Command.pm line 241. Cannot chmod blib\lib\auto\PAR: at C:/perl/lib/ExtUtils/Command.pm line 241.
Cannot chmod blib\man3: at C:/perl/lib/ExtUtils/Command.pm line 241.
        rem
        rem
cp lib/PAR/FAQ.pod blib\lib\PAR\FAQ.pod
cp lib/PAR/Tutorial.pod blib\lib\PAR\Tutorial.pod
cp lib/PAR/AutoLoaderFix.pm blib\lib\PAR\AutoLoaderFix.pm
cp lib/PAR/Environment.pod blib\lib\PAR\Environment.pod
cp lib/PAR/Heavy.pm blib\lib\PAR\Heavy.pm
cp lib/PAR.pm blib\lib\PAR.pm
AutoSplitting blib\lib\PAR.pm (blib\lib\auto\PAR)

C:\Perl\cpan\build\PAR-0.970_01>nmake test

Microsoft (R) Program Maintenance Utility Version 7.00.9466
Copyright (C) Microsoft Corporation.  All rights reserved.

        rem
        rem
C:\perl\bin\perl.exe "-MExtUtils::Command::MM" "-e" "test_harness(0, 'inc', 'blib\lib', 'blib\arch')"
t/00-pod.t t/01-basic.t t/40-par-hashref.t t/50-autoloaderfix.t
t/00-pod..............skipped
       all skipped: Set environment variable PERL_TEST_POD=1 to test POD
t/01-basic............ok
t/40-par-hashref......ok
t/50-autoloaderfix....ok
All tests successful, 1 test skipped.
Files=4, Tests=16,  1 wallclock secs ( 0.00 cusr +  0.00 csys =  0.00 CPU)

C:\Perl\cpan\build\PAR-0.970_01>nmake install

Microsoft (R) Program Maintenance Utility Version 7.00.9466
Copyright (C) Microsoft Corporation.  All rights reserved.

        rem
        rem
Skipping C:\Perl\site\lib\PAR.pm (unchanged)
Skipping C:\Perl\site\lib\auto\PAR\autosplit.ix (unchanged)
Skipping C:\Perl\site\lib\PAR\AutoLoaderFix.pm (unchanged)
Skipping C:\Perl\site\lib\PAR\Environment.pod (unchanged)
Skipping C:\Perl\site\lib\PAR\FAQ.pod (unchanged)
Skipping C:\Perl\site\lib\PAR\Heavy.pm (unchanged)
Skipping C:\Perl\site\lib\PAR\Tutorial.pod (unchanged)
Writing C:\Perl\site\lib\auto\PAR\.packlist
Appending installation info to C:\Perl\site\lib/perllocal.pod

C:\Perl\cpan\build\PAR-0.970_01>
------------------end paste




----------
It all works now.  I installed PAR-Packer-0.970 and PAR-0.970_01.

As a comment for MinGW users, I was getting the errors shown below during the installation of various items.

gcc: unrecognized option `-nologo'
gcc: unrecognized option `-nodefaultlib'
 ... ld.exe: cannot find -libpath:C:\Perl\lib\CORE
... sitecustomize.pl did not return a C:\perl\site\lib\sitecustomize.pl

Through experimentation, it seems I had to go to my MinGW32 shell (MSYS) and do
perl -MConfig_m Makefile.PL
nmake

and then switch to the Windows command prompt to do

nmake test
nmake install

I never had to do that before.

Reply via email to