Hi, just trying to convert a perl script into .exe using pp (part of PAR). Currently using a test script but no matter what script I use I get the same error message... Here is a script snippet (I've not included actual rest of the code as I tried the 'pp -o' command with several scripts all of which work as .pl and all of which give the same error)...
#!/usr/bin/perl # Created on 01-Sep-2004 12:29:29 use strict; use Tk; use diagnostics; ... ...
I ran the command "pp -o spript.exe script.pl" to create the stand alone executable but when I run it the error message is...

"couldn't find diagnostic data in D:\cpanrun\build\5-8-0\lib/pods/perldiag.pod CODE(0xe336d0) CODE(0xd3a158) . li3.exe at C:/Perl/lib/Diagnostics.pm line 249, <POD_DIAG> line 24739. Compilation failed in require at script/li2.pl line 7, <POD_DIAG> line 24739. BEGIN failed--compilation aborted at script/li2.pl line 7, <POD_DIAG> line 24739"

Now I removed the line "use diagnostics" and "use strict", no improvement I tried -M perldiag.pod and -l c:\perl\lib\pod\perldiag.pod no improvement I also tried -M diagnostics but then I get a whole new error message (not including this second error as I suspect it is a red herring to the problem)

Thanks in advance

Plotinus

In reply to stand alone executable using "pp -o" wont stand alone! by Plotinus

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.