Beefy Boxes and Bandwidth Generously Provided by pair Networks
Syntactic Confectionery Delight

Comment on

( #3333=superdoc: print w/replies, xml ) Need Help??

Hello everyone! i am having some trouble with PAR::Packer

I made a PAR executable package from a script and it runs fine. When I run it, it extracts to a temporary folder and executes from there.

I want to take the already extracted contents and launch that in some way from command line. I assume after extraction there is some exe launched with some arguments, but this isnt documented anywhere that i read, or is more advanced than i can understand

in the extracted temp file the only executable seems to be a modified copy of par.exe I found in the PAR module in my strawberryperl distribution (same 57344 bytes, 97 bytes are different).

when i run it i get

Can't locate in @INC (@INC contains: .) at -e line 779. BEGIN failed--compilation aborted at -e line 965.

I think there's something to do with @INC wich now i believe is something like include. Tried to manually set perl5lib env var and PAR variables in windows still no luck

Its like blackmagic , i have read everything i could find on PAR but it didnt solve my problem. Today i tried process explorer on it and it shows that the packed exe is running the small exe 37k from temp file, but no command line arguments. so it must be a temp file or env variable somewhere.

i posted this on another site but didnt get an answer, thats why im posting here too

In reply to strawberryperl on windows, running extracted par package from command line by zpimp

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, 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, 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.
  • Log In?

    What's my password?
    Create A New User
    and all is quiet...

    How do I use this? | Other CB clients
    Other Users?
    Others scrutinizing the Monastery: (6)
    As of 2018-05-27 12:33 GMT
    Find Nodes?
      Voting Booth?