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

In reply to Re^5: Tk: Cannot install from CPAN sometimes. by zentara
in thread Tk: Cannot install from CPAN sometimes. by choroba

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.