If I understand you correctly, this is actually a very common problem when making .exe's. The program runs, but not after you've made the .exe. Problem is that some things are "autoloaded" when running native and you need to get that stuff into the .exe. Easy way is to add "use Algorithm::Diff;" etc to the source code. This a "hint" that will cause PerlApp to include that into the .exe - then it will be found when the .exe runs. Any module that has an explicit "use" statement gets forced into the .exe.

If these are errors from PerlApp instead of .exe run time errors, then that means that the modules were not installed correctly using PPM. With ActiveState only use PPM for module installation! Active State PPM (Perl Package Manager) works with pre-compiled .ppd files. If the modules are installed correctly (ie with PPM), PerlApp will find the XS DLL's, etc.

I've been a PerlApp user for more than a decade and this thing works well. I would use the GUI version which allows you to save all of the settings as a type of "project file". This is easier than working with the command line and 5 bazillion options.

Anyway more of explanation of where this is going wrong would help. I hope what I said the first 2 paragraphs is helpful. I believe that is likely to solve your problem.


In reply to Re: Troubles creating a .exe by Marshall
in thread Troubles creating a .exe by cbouwkamp

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.