On 19 Okt., 17:18, [EMAIL PROTECTED] (Steffen Mueller) wrote: Hello Steffen,
thanks for your reply. :) > > 1. When using > > pp -x -o bla.exe bla.pl > > no libs are included into the resulting .exe file. Instead, simply the > > contents of the current directory are packed into the .exe. > > This seems odd to me. Can you give us a full example? Do you need the > execution-scan -x? I tried the -x because it did not work without. I need it because there are some modules that are loaded at runtime (drivers and such), depending on the chosen configuration. AH! I see now that there seems to be a problem opening sync.exe with 7- ZIP. It shows the directory contents instead of the contents of the archive. Seems like the archive is incompatible with 7-ZIP. The .exe I created now works on the other machine. :) But - EXE format cannot be combined with --multiarch, can it? > Now, you cannot execute a .par file using perl. The perl parser would > try to execute a zip file. (See the -P option to pp for that.) Hm. When I create a par-file with pp -x -p -o sync.par sync.pl and copy it to another Windows machine with Active Perl installed, it works fine with perl sync.par [<Options>] > "parl bla.par" is probably the most common way to do this. Can you be a little > more elaborate about the errors from parl bla.par? It complains about missing Benchmark.pm in @INC, which is included in the BEGIN block of the script, so it is the first module to locate. The path shown in the error message is... hm... strange. C:\Programme\DX-Union\Sync>parl sync.par Can't locate Benchmark.pm in @INC (@INC contains: CODE(0xee2ef0) C: \DOKUME~1\ADMINI~1\LOKALE~1\Temp\par-Administrator\cache- c8c50eead9db3e133403c04e56bdde8d3c25e5b5\inc\lib C: \DOKUME~1\ADMINI~1\LOKALE~1\Temp\par-Administrator\cache- c8c50eead9db3e133403c04e56bdde8d3c25e5b5\inc CODE(0xe3b050) . CODE(0xe3b188)) at script/sync.pl line 6. BEGIN failed--compilation aborted at script/sync.pl line 6. > What's in bla.par? > Try unzipping it. Okay, the unzipped archive works. It has a MSWin32-x86-multi-thread \lib directory including the necessary modules and the sync.pl. When I chdir into this directory and call "perl sync.pl", it seems to work. (I did not check all the options...) So, the only remaining problem is the strange path using parl.exe on sync.par, I think. Hm. Perhaps I should try to reinstall PAR? Greetings, Bianka
