in reply to Re^4: Tk: Cannot install from CPAN sometimes.
in thread Tk: Cannot install from CPAN sometimes.

I tried several times. Sometimes, everything goes well, but sometimes not.

I don't understand. Are you trying to repeatedly install to the same machine? If so, why not stop when everything goes well?

If you are just compulsive about getting an install process to go flawlessly, without test failure warnings, Tk is the wrong module to choose to test. Just google for "perl Tk test failures" and you will see that many of the tests are expected to fail, as bug fixes and other code improvements are incorporated into the code, and the overworked module maintainer can't waste time updating the test harness.

I suppose your assumption that Tk's test code is poor, may be accurate, especially in how it cooperates with a CPAN install. If the module works, don't worry about test failures.

The CPAN install process itself, may be part of the problem. If you install once, and it fails, you probably need to manually delete the Tk source from the ~/.cpan/build subdirectory, as subsequent builds may be corrupted by previous ones.

If you are trying to install to multiple machines, and getting failures on some, you need to look at the differences in the machines. You may not be able to install Tk thru CPAN on all machines. I always go thru the manual route... download tarball, perl Makefile.PL, make, sudo make install.... and watch for errors issued by Tk itself.


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

Replies are listed 'Best First'.
Re^6: Tk: Cannot install from CPAN sometimes.
by choroba (Cardinal) on Oct 29, 2010 at 14:14 UTC
    I originally installed Tk to several machines, but the problem appears at a single machine as well, as demonstrated by the loop. I was just curious why SelectionClear and SelectionGet cannot follow each other without some time interval. But maybe it's the test's problem, e.g. some other widget intervening and unsetting $@?
      why SelectionClear and SelectionGet cannot follow each other without some time interval

      ..? maybe because it has to communicate with the Xserver? I think those copy and paste buffers are part of X.


      I'm not really a human, but I play one on earth.
      Old Perl Programmer Haiku ................... flash japh
        Aren't both of those calls supposed to be blocking?