When using Module::Build, executing Build.pl is supposed to create Build.bat, which then calls (some other part of) Module::Build again, with the "right" parameters. This is based on the idea that you will have much more fun debugging a complex Perl script than you have debugging a Makefile which can show what it would execute and why how it fails. Ideally, instead of the "make dance", you do the "build dance":
perl Build.PL
Build
Build test
Build install
| [reply] [d/l] [select] |
Hm. Trouble is, to run Build.pl on my setup, I just type "build".
Which means that when I get to step 2 in that scenario, I'm simple redoing step 1.
Never mind, press on:
C:\Perl64\packages\PerlIO-Layers-0.010>build.bat
Building PerlIO-Layers
C:\Perl64\packages\PerlIO-Layers-0.010>build.bat test
t/00-compile.t ............ Can't stat lib: No such file or directory
at t/00-compile.t line 24
t/00-compile.t ............ skipped: no tests to run
t/10-basics.t ............. Can't locate PerlIO/Layers.pm in @INC (@IN
+C contains: C:\Perl64\packages\PerlIO-Layers-0.010\blib\lib C:\Perl64
+\packages\PerlIO-Layers-0.010\blib\arch c:/Perl64/site/lib c:/Perl64/
+lib .) at t/10-basics.t line 9.
BEGIN failed--compilation aborted at t/10-basics.t line 9.
t/10-basics.t ............. Dubious, test returned 2 (wstat 512, 0x200
+)
No subtests run
t/release-kwalitee.t ...... skipped: these tests are for release candi
+date testing
t/release-pod-coverage.t .. skipped: these tests are for release candi
+date testing
t/release-pod-syntax.t .... skipped: these tests are for release candi
+date testing
Test Summary Report
-------------------
t/10-basics.t (Wstat: 512 Tests: 0 Failed: 0)
Non-zero exit status: 2
Parse errors: No plan found in TAP output
Files=5, Tests=0, 4 wallclock secs ( 0.02 usr + 0.00 sys = 0.02 CPU
+)
Result: FAIL
Failed 1/5 test programs. 0/0 subtests failed.
C:\Perl64\packages\PerlIO-Layers-0.010>dir t\00-compile.t
Volume in drive C has no label.
Volume Serial Number is 8C78-4B42
Directory of C:\Perl64\packages\PerlIO-Layers-0.010\t
05/04/2012 14:20 1,621 00-compile.t
1 File(s) 1,621 bytes
0 Dir(s) 144,573,480,960 bytes free
Hm. No output of any kind from the "compile"; and error messages that make no sense from the nmake build test. Real useful!
With the rise and rise of 'Social' network sites: 'Computers are making people easier to use everyday'
Examine what is said, not who speaks -- Silence betokens consent -- Love the truth but pardon error.
"Science is about questioning the status quo. Questioning authority".
| [reply] [d/l] [select] |
Heh - it seems that Module::Build does not scream bloody murder when files from the MANIFEST are not found where they should be. It seems that extracting the distribution tarball went awry somewhere for you (maybe GNU tar vs. other tar / Archive::Tar) and so the directories were only partially created. I think I remember that Archive::Tar is/was broken in that regard, as it always used some GNU extension instead of using POSIX conventions for storing the file path whenever it can and only using GNU when the target path gets too long. Or the other way around.
If you still want to pursue this, you'll have to recreate the directory structure as in http://cpansearch.perl.org/src/LEONT/PerlIO-Layers-0.010/ and then proceed from there...
| [reply] |