I've written some code that includes two of my own modules. The top of my code includes this:
push (@INC,'H:\scr\pm'); require FileUtil_0_8_9_4; require logfile; use File::Spec; use Tk; use Tk::CheckbuttonGroup; use Tk::Checkbutton; use Config::IniFiles; use Win32;
I'm attempting to compile this into an executable using "pp" with the command:
H:\scr\pl\tmpclean>pp -M Win32::FileSecurity -M FileUtil_0_8_9_4.pm -M + logfile.pm -o tmpclean.exe tmpclean_3_3.pl
I get this error at runtime:
H:\scr\pl\tmpclean>tmpclean.exe Can't locate Win32/FileSecurity.pm in @INC (@INC contains: CODE(0xcce4 +64) . H:\scr\pm) at H:\scr\pm/FileUtil_0_8_9_4.pm BEGIN failed--compilation aborted at H:\scr\pm/FileUtil_0_8_9_4.pm lin +e 596. Compilation failed in require at script/tmpclean_3_3.pl line 13.
Obviously I'm doing something wrong in the compiling. Now I've done compiling like this before but this is the first time I've had to install my own personal packages or import additional modules into the exe. Can anyone offer suggestions? Thanks.

Dean
The Funkster of Mirth
Programming these days takes more than a lone avenger with a compiler. - sam
RFC1149: A Standard for the Transmission of IP Datagrams on Avian Carriers

In reply to Creating PAR executables by crabbdean

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.