in reply to Par Packer - gui option problems
What do you suggest for a way to find the error?
post code, not nothing
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^2: Par Packer - gui option problems
by Dirk80 (Pilgrim) on Dec 14, 2011 at 09:19 UTC | |
You are right. Code helps more. So I wrote a small script which can reproduce the behaviour.
The "pdim_link.bat" file I'm not allowed to publish. But I'll try to reproduce the same behaviour with a bat file which I can publish to you. Now to the code: If I pack it with the --gui option, i.e. pp --gui -a "./PDIMlink" -o test.exe test.pl then "pdim_link.bat" does NOT work and the file "log2.txt" is NOT created. If I pack the code without the --gui option, i.e. pp -a "./PDIMlink" -o test.exe test.pl then both files (log1.txt and log2.txt) are created and "pdim_link.bat" works as expected. The file "log1.txt" which contains the Dump of the environment variables is not different (apart from the cryptical path e.g. .../cache-94cdd0fc50fcdc36d7cd4972d0f2afa676e0b848/.. ) with or without using the gui option. | [reply] [d/l] [select] |
by Anonymous Monk on Dec 14, 2011 at 10:22 UTC | |
BUG or unknown feature in pp: dll files are not extracted -a is for data, -l is for dlls ... cygwin1.dll ... mingw perl uses
IIRC cygwin uses the same thing (but its been a long while since I cygwin) win32 perl uses
So once you pack with par/pp into an .exe, it can't find /bin/sh, because it doesn't exist (the .exe doesn't know about the cygwin enviroment/$PATH etc, its a win32 program), or /bin/sh doesn't know how to call a .batch file In short, avoid the shell, or call the right shell I haven't the time to post a working example , but I you should be able to gain some wisdom by reading these Re: Problem in creating exe using PAR module, Re^2: Packaging Perl Programs (is) Painful, Re: Building a Mojolicious app with PAR::Packer Re: Pack multiple scripts in executables with one shared core dll Re: system() implementation on Windows (again), Re^3: system() implementation on Windows (again) http://blogs.msdn.com/b/twistylittlepassagesallalike/archive/2011/04/23/everyone-quotes-arguments-the-wrong-way.aspx# Everyone quotes command line arguments the wrong way | [reply] [d/l] [select] |