Beefy Boxes and Bandwidth Generously Provided by pair Networks
Think about Loose Coupling
 
PerlMonks  

strawberryperl on windows, running extracted par package from command line

by zpimp (Initiate)
on Apr 03, 2014 at 16:09 UTC ( #1080967=perlquestion: print w/ replies, xml ) Need Help??
zpimp has asked for the wisdom of the Perl Monks concerning the following question:

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

Comment on strawberryperl on windows, running extracted par package from command line
Download Code
Re: strawberryperl on windows, running extracted par package from command line
by Bloodnok (Vicar) on Apr 03, 2014 at 17:30 UTC
    You may well have tried setting the 'perl5lib' env variable, but have you tried setting PERL5LIB instead ??

    A user level that continues to overstate my experience :-))
      env vars are case insensitive on windows
Re: strawberryperl on windows, running extracted par package from command line
by kcott (Abbot) on Apr 03, 2014 at 17:53 UTC

    G'day zpimp,

    Welcome to the monastery.

    It sounds like you may be using par when you probably should be using pp.

    Please show the full commands you're using to both create and run the executable.

    [Here's two additional links (in case you haven't seen them): PAR & PAR::Packer.]

    -- Ken

Re: strawberryperl on windows, running extracted par package from command line
by Anonymous Monk on Apr 03, 2014 at 23:15 UTC

    I want to take the already extracted contents and launch that in some way from command line.

    No you don't :) trust me you don't

    ... Its like blackmagic ...

    Not really, its actually very well documented ... Re: pp with gui

    but thats irrelevant, you do not want to do this, believe me

    If you don't like how pp works, try http://www.cavapackager.com/appdocs/overview-quickstart.htm

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: perlquestion [id://1080967]
Front-paged by Arunbear
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others lurking in the Monastery: (3)
As of 2014-09-15 02:33 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    My favorite cookbook is:










    Results (145 votes), past polls