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

I am trying to install Tk on Strawberry perl. I've done it in the past without problem, but I am failing now. I tried with Strawberry Perl 5.26 (portable): failed. I installed with berrybrew Perl 5.16: failed. The installation starts, I see all sort of GUI widget displayed, but at the end I always get the following message:

Test Summary Report ------------------- t\after.t (Wstat: 0 Tests: 6 Failed: 0) TODO passed: 1-6 t\listbox.t (Wstat: 256 Tests: 537 Failed: 1) Failed test: 407 TODO passed: 320-322, 328 Non-zero exit status: 1 t\text.t (Wstat: 0 Tests: 415 Failed: 0) TODO passed: 121 t\wm-tcl.t (Wstat: 256 Tests: 315 Failed: 1) Failed test: 86 TODO passed: 68 Non-zero exit status: 1 t\zzScrolled.t (Wstat: 0 Tests: 94 Failed: 0) TODO passed: 52, 66, 80, 94 Files=75, Tests=4584, 65 wallclock secs ( 1.02 usr + 0.58 sys = 1.59 + CPU) Result: FAIL Failed 2/75 test programs. 2/4584 subtests failed. gmake: *** [Makefile:1446: test_dynamic] Error 255 SREZIC/Tk-804.033.tar.gz C:\Perl526\c\bin\gmake.exe test -- NOT OK //hint// to see the cpan-testers results for installing this module, t +ry: reports SREZIC/Tk-804.033.tar.gz Stopping: 'install' failed for 'Tk'.

Any suggestion?

Replies are listed 'Best First'.
Re: Installing Tk on Strawberry
by beech (Parson) on Aug 14, 2017 at 00:02 UTC

    Hi,

    This is a known issue to the module author, so

    Go ahead and force install the module( force install Tk) or install without testing since you already tested ( notest install Tk)

Re: Installing Tk on Strawberry
by syphilis (Archbishop) on Aug 14, 2017 at 00:08 UTC
    The installation starts, I see all sort of GUI widget displayed ...

    That's just the tests running.

    Failed 2/75 test programs. 2/4584 subtests failed.

    No such problem for me on Windows 7, Strawberry 5.26.0.
    What version of Windows are you running, and what does perl -v output for you ?

    I think you could go ahead and install the module, anyway. Just force the installation ( cpan -fi Tk ) or cd to the directory in which Tk was built and run gmake install

    It would, of course, be good to also get some understanding of what's going wrong here. I couldn't quickly spot any bug reports at https://rt.cpan.org/Public/Dist/Display.html?Name=Tk that seemed relevant to the 2 failures you're seeing.

    Cheers,
    Rob

      Hi,

      Looks like position/geometry related, weird to fail, but not a big deal

      listbox.t#L1553

      t\list.t ..................... ok # Failed test at t\listbox.t line 1553. # '25x10+0+0' # doesn't match '(?^:20x10\+\d+\+\d+)' # Looks like you failed 1 test of 537. t\listbox.t .................. Dubious, test returned 1 (wstat 256, 0x100) Failed 1/537 subtests (less 81 skipped subtests: 455 okay) (4 TODO tests unexpectedly succeeded)

      wm-tcl.t#L779

      # Failed test 'wm geometry, setting and getting values' # at t\wm-tcl.t line 779. # got: '182x150+50+50' # expected: '150x150+50+50' # Looks like you failed 1 test of 315. t\wm-tcl.t ................... Dubious, test returned 1 (wstat 256, 0x100) Failed 1/315 subtests (less 45 skipped subtests: 269 okay) (1 TODO test unexpectedly succeeded)