First, I would change the "shebang" line to #!/usr/bin/perl. If you use #!/usr/bin/perl -w, windows will not pay attention to the perl path, but it will understand the -w (use warnings) option.

The above is a tip for the future. That is not the problem now.

I have been down some "merry paths through hell" with .exe files.

Your error messages are probably just the "tip of the iceberg". Sorry about that, but I'll explain how to deal with it...

Whats happening is that the .exe is trying to run something that isn't in the .exe. "use" is different than "require" and the autoloader isn't available for a .exe file.

What all of these boils down to is: to make a successful .exe file, you need to explicitly "use" many Tk::module things that you wouldn't normally have to, like: use Tk::Image.

It is highly likely that you will miss one or more use Tk::X statements, like maybe one below. Your .pl program should explicitly "use" all OO modules that will be later used at run-time. The process is actually straightforward: make .exe, run program, test to find the OO module that "didn't make it into .exe", "use" that module, then go again. You are tripping over "run-time" landmines.

use Tk::LabFrame; use Tk::Listbox; use Tk::Scrollbar; use Tk::Button; use Tk::Menubutton; use Tk::Menu; use Tk::Widget; use Tk::Label; use Tk::Entry;

In reply to Re: tkpp fails if images used by Marshall
in thread tkpp fails if images used by memo.garciasir

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.