Hello!

I'm trying to teach myself Tk, by making a little game. Now I'd like to send it to my sister, so my little nephews can play it, but she doesn't have Perl installed, so I'd like to compile it to an executable (we both have macs). I use the pp tool, and it seems to work just fine on little example programs, but for this one I get errors. I worked out most of the problems, but the last error has me at a loss.

>>> pp -c hopgame SYSTEM ERROR in compiling hopgame: 11 at /System/Library/Perl/Extras/5 +.18/Module/ScanDeps.pm line 1351. >>> pp hopgame /usr/bin/pp5.18: Failed to extract a parl from 'PAR::StrippedPARL::Sta +tic' to file '/var/folders/y8/p9hddj4d1l7fryf24cz0cd3m0000gn/T/parlpo +XAzmu' at /System/Library/Perl/Extras/5.18/PAR/Packer.pm line 1152, < +DATA> line 1.

I guess it's something to do with importing the Tk modules? I don't know what else to do about it. Of course, if there's an easier way to compile to an executable, I'd welcome that too. I have ActivePerl 5.20, Mac OS 10.12.6.


In reply to Issues with pp and Tk by Chuma

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.