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

Hello all, I am desperately trying to port some Perl code I developed on Apple to Windows, in order to make an .exe file. To do so, I need some modules.

I installed ActivePerl on Windows 7 (32 bit). That went just file. The first modules went allright as well. Problems occur when I try to install the needeed module GraphViz2.

GraphViz 2 needs some other modules. The install procedure with CPAN crashes on dependency Perl6::Slurp. dmake won't install (See log below).

Could anybody please help me out here? I really need this thing to work by tomorrow, and I am not familiar with Perl module installs.

Thanks in advance.

Kind regards,

Bas Dekker Amsterdam, the Netherlands Here's the install log:

Warning: prerequisite Perl6::Slurp 0.03 not found. Writing Makefile for GraphViz2 Writing MYMETA.yml and MYMETA.json ---- Unsatisfied dependencies detected during ---- ---- RSAVAGE/GraphViz2-2.02.tgz ---- Perl6::Slurp [requires] Running make test Delayed until after prerequisites Running make install Delayed until after prerequisites Running install for module 'Perl6::Slurp' Running make for D/DC/DCONWAY/Perl6-Slurp-0.050000.tar.gz Checksum for C:\Perl\cpan\sources\authors\id\D\DC\DCONWAY\Perl6-Slurp- +0.050000.t ar.gz ok Perl6-Slurp-0.050000/ Perl6-Slurp-0.050000/Changes Perl6-Slurp-0.050000/demo/ Perl6-Slurp-0.050000/lib/ Perl6-Slurp-0.050000/Makefile.PL Perl6-Slurp-0.050000/MANIFEST Perl6-Slurp-0.050000/META.yml Perl6-Slurp-0.050000/README Perl6-Slurp-0.050000/t/ Perl6-Slurp-0.050000/t/chomp.t Perl6-Slurp-0.050000/t/errors.t Perl6-Slurp-0.050000/t/filehandle.t Perl6-Slurp-0.050000/t/filename.t Perl6-Slurp-0.050000/t/ioderfile.t Perl6-Slurp-0.050000/t/iofile.t Perl6-Slurp-0.050000/t/ipc.t Perl6-Slurp-0.050000/t/irs.t Perl6-Slurp-0.050000/t/layers.t Perl6-Slurp-0.050000/t/lexfilehandle.t Perl6-Slurp-0.050000/t/no_source.t Perl6-Slurp-0.050000/t/string.t Perl6-Slurp-0.050000/lib/Perl6/ Perl6-Slurp-0.050000/lib/Perl6/Slurp.pm Perl6-Slurp-0.050000/demo/demo_list_context.pl Perl6-Slurp-0.050000/demo/demo_squeeze.pl CPAN.pm: Building D/DC/DCONWAY/Perl6-Slurp-0.050000.tar.gz Set up gcc environment - 3.4.5 (mingw-vista special r3) Checking if your kit is complete... Looks good Writing Makefile for Perl6::Slurp Writing MYMETA.yml and MYMETA.json cp lib/Perl6/Slurp.pm blib\lib\Perl6\Slurp.pm DCONWAY/Perl6-Slurp-0.050000.tar.gz C:\Perl\site\bin\dmake.exe -- OK Running make test C:\Perl\bin\perl.exe "-MExtUtils::Command::MM" "-e" "test_harness(0, ' +blib\lib', 'blib\arch')" t/*.t t/chomp.t .......... ok t/errors.t ......... 1/? non-existent_prog wordt niet herkend als een +interne of externe opdracht, programma of batchbestand. # Failed test 'shouldn't be able to slurp failed pipe' # at t/errors.t line 25. # '' # doesn't match '(?^:^Can't open '-|non-existent_prog')' # Looks like you failed 1 test of 5. t/errors.t ......... Dubious, test returned 1 (wstat 256, 0x100) Failed 1/5 subtests t/filehandle.t ..... ok t/filename.t ....... ok t/ioderfile.t ...... ok t/iofile.t ......... ok t/ipc.t ............ ok t/irs.t ............ ok t/layers.t ......... ok t/lexfilehandle.t .. ok t/no_source.t ...... ok t/string.t ......... ok Test Summary Report ------------------- t/errors.t (Wstat: 256 Tests: 5 Failed: 1) Failed test: 4 Non-zero exit status: 1 Files=12, Tests=181, 3 wallclock secs ( 0.19 usr + 0.06 sys = 0.25 CPU +) Result: FAIL Failed 1/12 test programs. 1/181 subtests failed. dmake.exe: Error code 255, while making 'test_dynamic' DCONWAY/Perl6-Slurp-0.050000.tar.gz C:\Perl\site\bin\dmake.exe test -- NOT OK //hint// to see the cpan-testers results for installing this module, t +ry: reports DCONWAY/Perl6-Slurp-0.050000.tar.gz Running make install make test had returned bad status, won't install without force
  • Comment on CPAN problem for installation of GraphViz2. Dependency on Perl6::Slurp
  • Download Code

Replies are listed 'Best First'.
Re: CPAN problem for installation of GraphViz2. Dependency on Perl6::Slurp
by tobyink (Canon) on Jun 06, 2012 at 16:27 UTC

    This is a totally useless test failure. The test case is basically just deliberately creating an error, and testing that the error has been detected. But the test case is checking the text of the error message, which is apparently "wrong" and thus the test fails.

    Ignore it. Use CPAN's "force install" feature.

    ... And file a bug report for Perl6::Slurp.

    perl -E'sub Monkey::do{say$_,for@_,do{($monkey=[caller(0)]->[3])=~s{::}{ }and$monkey}}"Monkey say"->Monkey::do'
Re: CPAN problem for installation of GraphViz2. Dependency on Perl6::Slurp
by daxim (Curate) on Jun 06, 2012 at 16:27 UTC
      Well, thanks, daxim. This shows that I am not the only one with this problem... Unfortunately enough, I don't know how to read the code of the post. It looks like a diff-format of some kind, but this goes far beyond my level. I tried to force-install the package. The installation was appended, so this is good enough for a first approach, I guess. As said, I develop on Apple and this whole exercise is there to port my software to Windows... Thanks for posting this! Bas