nglenn has asked for the wisdom of the Perl Monks concerning the following question:

All of the tests on Cpan tester show that it won't install. It doesn't on mine either. It fails on the test that looks like this:
TEST "shouldn't be able to slurp failed pipe"; eval{slurp "-|", "non-existent_prog"} ? ok 0, $desc : like $@, qr/^Can't open '-|non-existent_prog'/, $desc;
I really need it to work because it's a required dependency for GraphViz2. The module doesn't look too long, but I don't think I can figure out how to fix it for Windows. Besides that, when I download the tar ball and try to install it using make (instead of using the cpan utility), it fails with this error:
/bin/sh: C:strawberryperlbinperl.exe: command not found make: *** [blib\lib\Perl6\\.exists] Error 127
As if there are some Window's forward slashes it's not escaping anywhere. Can anyone give me some tips on how to fix the module and get it up and running? ***UPDATE Thanks all. Yes, I did need to use dmake, not make. I followed tye's advice and just installed it. It probably won't make too big a difference. The bug report mentioned the same thing.

Replies are listed 'Best First'.
Re: perl6-slurp for Windows
by davido (Cardinal) on May 12, 2012 at 00:45 UTC

    You're invoking make on Windows? Are you sure you don't need dmake?

    Also, always check the bug tracker: 26595 seems relevant.

    I did notice on the CPAN testers reports that v0.03 did pass on Windows. Perhaps you could try installing that version. GraphViz2 only requires v0.03.


    Dave

      I would be incredulous if using the wrong "make" lead to just a single test step failing. Especially as that is the same test step that fails in automated tests.

      (Update: Oops. I see now that those two things are distinct issues here. Note that you shouldn't have to "use make" to get the module to install, just read up on whatever tool you are using to figure out how to force it to install even though the unit test results weren't perfect. Also, which 'make' to use can be determined by running "perl -V:make".)

      Humorously, if you look at the differences between v0.03 and v0.05, you'll see this:

      +TEST "shouldn't be able to slurp failed pipe"; + +eval{slurp "-|", "non-existent_prog"} + ? ok 0, $desc + : like $@, + qr/^Can't open '-|non-existent_prog'/, + $desc;

      Yeah, I really doubt v0.05 in fact works any less well on Windows than v0.03 did. :)

      - tye        

Re: perl6-slurp for Windows (JFII)
by tye (Sage) on May 12, 2012 at 01:08 UTC

    Oh, for f*'s sake, just install it. The reports don't mean that it "won't install". They mean (as you noted) that *1* of the unit tests failed. Unless GraphViz2 can't work without that one (rather obscure-sounding) feature, it likely won't make a jot of difference.

    - tye