Beefy Boxes and Bandwidth Generously Provided by pair Networks
Your skill will accomplish
what the force of many cannot
 
PerlMonks  

Re: Re: Re: Module::Build article on perl.com, MakeMaker is doomed

by tachyon (Chancellor)
on Feb 15, 2003 at 18:56 UTC ( [id://235599]=note: print w/replies, xml ) Need Help??


in reply to Re: Re: Module::Build article on perl.com, MakeMaker is doomed
in thread Module::Build article on perl.com, MakeMaker is doomed

OK here is a bug report. Module::Builder requires Archive::Tar > 0.22 On Win2K this craps out and without it I can't install your Module unless I edit the Makefile.PL (easy enough). I cna't use PPM to get 0.22 because the latest PPM is 0.072. So to install your module I need to write a new Makefile, rearrange the directory structure, fix the MANIFEST and then it will work. Hmmm. A second bug report is that if a user has never run CPAN it defaults into interactive mode which results in an automated script calling CPAN effectively hanging as it waits for user input that never comes if you call it using backtics. If you use piped opens it is not portable.....

Here is the install:

C:\Thesaurus-0.21>perl Makefile.PL This module required Module::Build to install itself. Install Module::Build [y] y CPAN: Storable loaded ok Going to read \cpan\Metadata Database was generated on Mon, 10 Feb 2003 20:36:47 GMT CPAN is up to date. Running install for module Module::Build Running make for K/KW/KWILLIAMS/Module-Build-0.15.tar.gz CPAN: Digest::MD5 loaded ok CPAN: Compress::Zlib loaded ok Checksum for \cpan\sources\authors\id\K\KW\KWILLIAMS\Module-Build-0.15 +.tar.gz ok Scanning cache \cpan\build\. for sizes CPAN: Archive::Tar loaded ok Module-Build-0.15/ Module-Build-0.15/Build.PL Module-Build-0.15/Changes Module-Build-0.15/INSTALL Module-Build-0.15/lib/ Module-Build-0.15/lib/Module/ Module-Build-0.15/lib/Module/Build/ Module-Build-0.15/lib/Module/Build/Base.pm Module-Build-0.15/lib/Module/Build/Compat.pm Module-Build-0.15/lib/Module/Build/Platform/ Module-Build-0.15/lib/Module/Build/Platform/Amiga.pm Module-Build-0.15/lib/Module/Build/Platform/darwin.pm Module-Build-0.15/lib/Module/Build/Platform/Default.pm Module-Build-0.15/lib/Module/Build/Platform/EBCDIC.pm Module-Build-0.15/lib/Module/Build/Platform/MacOS.pm Module-Build-0.15/lib/Module/Build/Platform/MPEiX.pm Module-Build-0.15/lib/Module/Build/Platform/RiscOS.pm Module-Build-0.15/lib/Module/Build/Platform/Unix.pm Module-Build-0.15/lib/Module/Build/Platform/VMS.pm Module-Build-0.15/lib/Module/Build/Platform/VOS.pm Module-Build-0.15/lib/Module/Build/Platform/Windows.pm Module-Build-0.15/lib/Module/Build.pm Module-Build-0.15/Makefile.PL Module-Build-0.15/MANIFEST Module-Build-0.15/META.yml Module-Build-0.15/README Module-Build-0.15/t/ Module-Build-0.15/t/basic.t Module-Build-0.15/t/common.pl Module-Build-0.15/t/lib/ Module-Build-0.15/t/lib/ModuleBuildOne.pm Module-Build-0.15/t/MANIFEST Module-Build-0.15/t/runthrough.t Module-Build-0.15/t/Sample/ Module-Build-0.15/t/Sample/Build.PL Module-Build-0.15/t/Sample/lib/ Module-Build-0.15/t/Sample/lib/Sample.pm Module-Build-0.15/t/Sample/MANIFEST Module-Build-0.15/t/Sample/META.yml Module-Build-0.15/t/Sample/test.pl Module-Build-0.15/t/xs.t Module-Build-0.15/t/XSTest/ Module-Build-0.15/t/XSTest/Build.PL Module-Build-0.15/t/XSTest/Changes Module-Build-0.15/t/XSTest/lib/ Module-Build-0.15/t/XSTest/lib/XSTest.pm Module-Build-0.15/t/XSTest/lib/XSTest.xs Module-Build-0.15/t/XSTest/MANIFEST Module-Build-0.15/t/XSTest/test.pl Removing previously used \cpan\build\Module-Build-0.15 CPAN.pm: Going to build K/KW/KWILLIAMS/Module-Build-0.15.tar.gz C:\Perl\bin\Perl.exe Build.PL Checking whether your kit is complete... Looks good WARNING: Archive::Tar: Version 0.072 is installed, but we need version + >= 0.22 ERRORS/WARNINGS FOUND IN PREREQUISITES. You may wish to install the v +ersions of the modules indicated above before proceeding with this installation. Creating new 'Build' script for 'Module-Build' version '0.15' Warning: PREREQ_PM mentions ExtUtils::Install more than once, last men +tion wins at C:/Perl/lib/CPAN.pm line 4642, <GEN4> line 1. ---- Unsatisfied dependencies detected during [K/KW/KWILLIAMS/Module-B +uild-0.15. tar.gz] ----- Archive::Tar Shall I follow them and prepend them to the queue of modules we are processing right now? [yes] yes Running make test Delayed until after prerequisites Running make install Delayed until after prerequisites Running install for module Archive::Tar Running make for S/SR/SRZ/Archive-Tar-0.22.tar.gz Checksum for \cpan\sources\authors\id\S\SR\SRZ\Archive-Tar-0.22.tar.gz + ok Archive-Tar-0.22/ Archive-Tar-0.22/ChangeLog Archive-Tar-0.22/Makefile.PL Archive-Tar-0.22/COPYRIGHT Archive-Tar-0.22/test.pl Archive-Tar-0.22/Tar.pm Archive-Tar-0.22/TODO Archive-Tar-0.22/README Archive-Tar-0.22/ptar Archive-Tar-0.22/MANIFEST Removing previously used \cpan\build\Archive-Tar-0.22 CPAN.pm: Going to build S/SR/SRZ/Archive-Tar-0.22.tar.gz Checking if your kit is complete... Looks good Writing Makefile for Archive::Tar Microsoft (R) Program Maintenance Utility Version 1.50 Copyright (c) Microsoft Corp 1988-94. All rights reserved. cp Tar.pm blib\lib\Archive\Tar.pm C:\Perl\bin\Perl.exe -IC:\Perl\lib -IC:\Perl\lib -MExtUtils::C +ommand -e cp ptar blib\script\ptar C:\Perl\bin\Perl.exe -IC:\Perl\lib -IC:\Perl\lib -e "system q +q[pl2bat.b at ].shift" blib\script\ptar C:\WINNT\nmake.EXE -- OK Running make test Microsoft (R) Program Maintenance Utility Version 1.50 Copyright (c) Microsoft Corp 1988-94. All rights reserved. C:\Perl\bin\Perl.exe -IC:\Perl\lib -IC:\Perl\lib -MExtUtils::C +ommand -e cp ptar blib\script\ptar C:\Perl\bin\Perl.exe -IC:\Perl\lib -IC:\Perl\lib -e "system q +q[pl2bat.b at ].shift" blib\script\ptar C:\Perl\bin\Perl.exe -Iblib\arch -Iblib\lib -IC:\Perl\lib -IC: +\Perl\lib test.pl 1..10 ok 1 ok 2 ok 3 Can't call method "gzwrite" on an undefined value at blib\lib/Archive/ +Tar.pm lin e 492. NMAKE : fatal error U1077: 'C:\WINNT\system32\cmd.exe' : return code ' +0xff' Stop. C:\WINNT\nmake.EXE test -- NOT OK Running make install make test had returned bad status, won't install without force Running make for K/KW/KWILLIAMS/Module-Build-0.15.tar.gz Is already unwrapped into directory \cpan\build\Module-Build-0.15 CPAN.pm: Going to build K/KW/KWILLIAMS/Module-Build-0.15.tar.gz Microsoft (R) Program Maintenance Utility Version 1.50 Copyright (c) Microsoft Corp 1988-94. All rights reserved. ./Build '.' is not recognized as an internal or external command, operable program or batch file. NMAKE : fatal error U1077: 'C:\WINNT\system32\cmd.exe' : return code ' +0x1' Stop. C:\WINNT\nmake.EXE -- NOT OK Running make test Can't test without successful make Running make install make had returned bad status, install seems impossible C:\Thesaurus-0.21>This module required Module::Build to install itself +. Install Module::Build [y] y 'y' is not recognized as an internal or external command, operable program or batch file. C:\Thesaurus-0.21>

cheers

tachyon

s&&rsenoyhcatreve&&&s&n.+t&"$'$`$\"$\&"&ee&&y&srve&&d&&print

  • Comment on Re: Re: Re: Module::Build article on perl.com, MakeMaker is doomed
  • Download Code

Replies are listed 'Best First'.
Re^4: Module::Build article on perl.com, MakeMaker is doomed
by Aristotle (Chancellor) on Feb 16, 2003 at 11:58 UTC

      Yep, Archive::Tar 0.23 installs fine on Win32. Module::Build on the other hand does not:

      C:\Thesaurus-0.21>perl Makefile.PL This module required Module::Build to install itself. Install Module::Build [y] CPAN: Storable loaded ok Going to read \cpan\Metadata Database was generated on Mon, 10 Feb 2003 20:36:47 GMT CPAN is up to date. Running install for module Module::Build Running make for K/KW/KWILLIAMS/Module-Build-0.15.tar.gz CPAN: Digest::MD5 loaded ok CPAN: Compress::Zlib loaded ok Checksum for \cpan\sources\authors\id\K\KW\KWILLIAMS\Module-Build-0.15 +.tar.gz ok Scanning cache \cpan\build\. for sizes CPAN: Archive::Tar loaded ok Module-Build-0.15/ Module-Build-0.15/Build.PL Module-Build-0.15/Changes Module-Build-0.15/INSTALL Module-Build-0.15/lib/ Module-Build-0.15/lib/Module/ Module-Build-0.15/lib/Module/Build/ Module-Build-0.15/lib/Module/Build/Base.pm Module-Build-0.15/lib/Module/Build/Compat.pm Module-Build-0.15/lib/Module/Build/Platform/ Module-Build-0.15/lib/Module/Build/Platform/Amiga.pm Module-Build-0.15/lib/Module/Build/Platform/darwin.pm Module-Build-0.15/lib/Module/Build/Platform/Default.pm Module-Build-0.15/lib/Module/Build/Platform/EBCDIC.pm Module-Build-0.15/lib/Module/Build/Platform/MacOS.pm Module-Build-0.15/lib/Module/Build/Platform/MPEiX.pm Module-Build-0.15/lib/Module/Build/Platform/RiscOS.pm Module-Build-0.15/lib/Module/Build/Platform/Unix.pm Module-Build-0.15/lib/Module/Build/Platform/VMS.pm Module-Build-0.15/lib/Module/Build/Platform/VOS.pm Module-Build-0.15/lib/Module/Build/Platform/Windows.pm Module-Build-0.15/lib/Module/Build.pm Module-Build-0.15/Makefile.PL Module-Build-0.15/MANIFEST Module-Build-0.15/META.yml Module-Build-0.15/README Module-Build-0.15/t/ Module-Build-0.15/t/basic.t Module-Build-0.15/t/common.pl Module-Build-0.15/t/lib/ Module-Build-0.15/t/lib/ModuleBuildOne.pm Module-Build-0.15/t/MANIFEST Module-Build-0.15/t/runthrough.t Module-Build-0.15/t/Sample/ Module-Build-0.15/t/Sample/Build.PL Module-Build-0.15/t/Sample/lib/ Module-Build-0.15/t/Sample/lib/Sample.pm Module-Build-0.15/t/Sample/MANIFEST Module-Build-0.15/t/Sample/META.yml Module-Build-0.15/t/Sample/test.pl Module-Build-0.15/t/xs.t Module-Build-0.15/t/XSTest/ Module-Build-0.15/t/XSTest/Build.PL Module-Build-0.15/t/XSTest/Changes Module-Build-0.15/t/XSTest/lib/ Module-Build-0.15/t/XSTest/lib/XSTest.pm Module-Build-0.15/t/XSTest/lib/XSTest.xs Module-Build-0.15/t/XSTest/MANIFEST Module-Build-0.15/t/XSTest/test.pl Removing previously used \cpan\build\Module-Build-0.15 CPAN.pm: Going to build K/KW/KWILLIAMS/Module-Build-0.15.tar.gz C:\Perl\bin\Perl.exe Build.PL Checking whether your kit is complete... Looks good Creating new 'Build' script for 'Module-Build' version '0.15' Warning: PREREQ_PM mentions ExtUtils::Install more than once, last men +tion wins at C:/Perl/lib/CPAN.pm line 4642, <GEN4> line 1. Microsoft (R) Program Maintenance Utility Version 1.50 Copyright (c) Microsoft Corp 1988-94. All rights reserved. ./Build '.' is not recognized as an internal or external command, operable program or batch file. NMAKE : fatal error U1077: 'C:\WINNT\system32\cmd.exe' : return code ' +0x1' Stop. C:\WINNT\nmake.EXE -- NOT OK Running make test Can't test without successful make Running make install make had returned bad status, install seems impossible C:\Thesaurus-0.21>This module required Module::Build to install itself +. Install Module::Build [y] y 'y' is not recognized as an internal or external command, operable program or batch file. C:\Thesaurus-0.21>

      cheers

      tachyon

      s&&rsenoyhcatreve&&&s&n.+t&"$'$`$\"$\&"&ee&&y&srve&&d&&print

      I have spent a couple of hours patching the source of Module::Build and can now get it to install (almost) properly with nmake. Patches submitted to the author. This module has a way to go yet and stillhas some very significant issues particularly the failure to recognise an incremented version number and thus the requirement for an update.....

      cheers

      tachyon

      s&&rsenoyhcatreve&&&s&n.+t&"$'$`$\"$\&"&ee&&y&srve&&d&&print

        This module has a way to go yet and still has some very significant issues particularly the failure to recognise an incremented version number and thus the requirement for an update.....

        Absolutely. There's lots of work to be done, and your patches will help, I'm sure. Just because Module::Build isn't perfect doesn't mean it won't succeed. Of course it needs lots of people looking at it on many different platforms. Hopefully my article will help convince more people to take a look at it, which will result in more bug reports and a better tool in the end.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://235599]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others admiring the Monastery: (3)
As of 2024-09-07 20:55 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?
    erzuuli‥ 🛈The London Perl and Raku Workshop takes place on 26th Oct 2024. If your company depends on Perl, please consider sponsoring and/or attending.