in reply to Tk: Cannot install from CPAN sometimes.

It could be a bug, but Perl/Tk has had a bad habit for failing the tests done after installation, even though the installations work Ok.

Have you tried to run the example scripts, or the program called widget. If "widget" runs, and you try the various demos in it, and they perform, then you are Ok.

I urge you to download the latest Tk tarball from CPAN, and manually build it..... you will see quite a few errors go by in the self-test, but the Tk install works as advertised.


I'm not really a human, but I play one on earth.
Old Perl Programmer Haiku ................... flash japh
  • Comment on Re: Tk: Cannot install from CPAN sometimes.

Replies are listed 'Best First'.
Re^2: Tk: Cannot install from CPAN sometimes.
by choroba (Cardinal) on Oct 28, 2010 at 18:10 UTC
    It is exactly what I did. Sometimes, the tests are OK and installation is possible, sometimes it is not. I tried running just the single test for many times, without the sleep, it just randomly fails.
    For example: Or, shorter:
    root@weed# for a in {1..25} ; do /usr/bin/perl "-It" "-MTkTest" "-MExt +Utils::Command::MM" "-e" "check_display_harness; test_harness(0, 'bli +b/lib', 'blib/arch')" t/text.t ; done 2>/dev/null | grep Result: | s +ort | uniq -c 22 Result: FAIL 3 Result: PASS
      It must be some peculiarity of your system. Instead of your odd test command:
      root@weed# for a in {1..25} ; do /usr/bin/perl "-It" "-MTkTest" "-MExt +Utils::Command::MM" "-e" "check_display_harness; test_harness(0, 'bli +b/lib', 'blib/arch')" t/text.t ; done 2>/dev/null | grep Result: | s +ort | uniq -c
      Can you do this:

      unpack the tarball, perl Makefile.PL, make, make test, make install (as root)?


      I'm not really a human, but I play one on earth.
      Old Perl Programmer Haiku ................... flash japh
        Yes, I tried several times. Sometimes, everything goes well, but sometimes not. The test that fails is shown in my "odd" test command.