Beefy Boxes and Bandwidth Generously Provided by pair Networks
We don't bite newbies here... much
 
PerlMonks  

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 Win32.pm 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

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, 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?
    Username:
    Password:

    What's my password?
    Create A New User
    Chatterbox?
    [choroba]: (well, it comes from the 14th century, so labelling it as "modern" doesn't seem appropriate)
    [Your Mother]: "They" is becoming accepted but it irritates me sometimes. I tend to just pick she or he randomly or try to use "one."
    LanX thinks it is appropriate here :)
    [Your Mother]: They would think so.
    [jdporter]: ok, I need a recipe for piping lines "through" an external program which is itself a filter
    [jdporter]: without using a tmp file
    [1nickt]: tobyink perl -MTypes::Standard= is_Int -Mstrict -wE 'say 1 if is_Int 1.0'
    [jdporter]: so that I can use the existing expand unix util. Otherwise, I'll probably use Text::Tabs.
    [1nickt]: pryrt I guess I don;t really care if user 42 logs on as 42.0 ... more of an academic question at this point.
    [LanX]: jdporter: open PIPE,'-|' ?

    How do I use this? | Other CB clients
    Other Users?
    Others contemplating the Monastery: (13)
    As of 2017-05-24 20:24 GMT
    Sections?
    Information?
    Find Nodes?
    Leftovers?
      Voting Booth?