Re: Problem whit PP
Hi, Could you tell me how you installed Win32::Exe ? Best regards Mark On 03/07/2010 09:11, Zico Zicaus wrote: Hi, thanks for answer, now i get different problem: C:\Perl\produzi\Annulli_Tecniciexe_update.pl --info Comments=ciao Annulli_Tecnici.exe Can't load 'C:/Perl/site/lib/auto/Win32/Exe/InsertResourceSection/InsertResourceSection.dll' for module Win32::Exe::InsertResourceSection: load_file:Invalid access to memory location at C:/Perl/site/lib/XSLoader.pm line 70. at C:/Perl/site/lib/Win32/Exe/InsertResourceSection.pm line 29 Compilation failed in require at C:/Perl/site/lib/Win32/Exe.pm line 332. Mybe must add some to my .pl file first of compiled and when loaunch the command exe_update.pl --info Comments=ciao Annulli_Tecnici.exe ? How can i resolve this problem? Thanks Best regards From: zicozic...@hotmail.com To: par@perl.org Subject: RE: Problem whit PP Date: Thu, 1 Jul 2010 15:44:54 + Hi, i have try to registration to web site, but i get occured the follow message error: Si è verificato un problema nella sessione che identifica l'accesso; il sistema non ha eseguito il comando impartito per precauzione. Tornare alla pagina precedente con il tasto 'Indietro' del proprio browser, ricaricare la pagina e riprovare. How can i do for registration? Thanks By Simone From: zicozic...@hotmail.com To: par@perl.org Subject: Problem whit PP Date: Thu, 1 Jul 2010 15:32:01 + Hi, i have problem whit use pp, when i try to compiled source .pl in .ex this is ok, but when i launch the command for add information on file exe, i get error: C:\Perl\produzi\Annulli_Tecnici\binpp -N Comments=ciao -o Annulli_Tecnici.exe Annulli_Tecnici.pl Set up gcc environment - 3.4.5 (mingw-vista special r3) Set up gcc environment - 3.4.5 (mingw-vista special r3) Copyright (C) 2004 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. No resource section found in file parlMveo.exe at C:/Perl/site/lib/Win32/Exe.pm line 348. No resource section found in file parlMveo.exe at C:/Perl/site/lib/Win32/Exe.pm line 348. Access is denied. The version pp is 1.006 When i must try to do the test whit pp i get this: C:\Perl\PAR-Packer-1.006\PAR-Packer-1.006dmake test C:\Perl\bin\perl.exe -e chmod(oct('0600'), '..\blib\lib\PAR\StrippedPARL\Static.pm'); C:\Perl\bin\perl.exe encode_append.pl static.exe ..\blib\lib\PAR\StrippedPARL\Static.pm C:\Perl\bin\perl.exe -e chmod(oct('0444'), '..\blib\lib\PAR\StrippedPARL\Static.pm'); C:\Perl\bin\perl.exe -e chmod(oct('0600'), '..\blib\lib\PAR\StrippedPARL\Dynamic.pm'); C:\Perl\bin\perl.exe encode_append.pl par.exe ..\blib\lib\PAR\StrippedPARL\Dynamic.pm C:\Perl\bin\perl.exe -e chmod(oct('0444'), '..\blib\lib\PAR\StrippedPARL\Dynamic.pm'); C:\Perl\bin\perl.exe -MExtUtils::Command::MM -e test_harness(0, 'inc', 'blib\lib', 'blib\arch') t/00-pod.t t/10-parl-generation.t t/20-pp.t t/30-current_ exec.t t/40-packer_cd_option.t t/00-pod.t ... skipped: Set environment variable PERL_TEST_POD=1 to test POD t/10-parl-generation.t ... ok t/20-pp.t 31/34 No resource section found in file parltde9.exe at C:/Perl/site/lib/Win32/Exe.pm line 348. No resource section found in file parltde9.exe at C:/Perl/site/lib/Win32/Exe.pm line 348. Can't call method remove on an undefined value at C:/Perl/site/lib/Win32/Exe.pm line 473. # Failed test 'pp_gui_tests # amsg572: sub pp_gui_tests cannot system pp --gui --icon hi.ico -o hello.exe hello.pl:No such file or directory: # ' # at automated_pp_test.pl line 8445. t/20-pp.t 34/34 # Looks like you failed 1 test of 34. t/20-pp.t Dubious, test returned 1 (wstat 256, 0x100) Failed 1/34 subtests t/30-current_exec.t .. # Please wait t/30-current_exec.t .. ok t/40-packer_cd_option.t .. ok Test Summary Report --- t/20-pp.t (Wstat: 256 Tests: 34 Failed: 1) Failed test: 32 Non-zero exit status: 1 Files=5, Tests=71, 1797 wallclock secs ( 0.13 usr + 0.19 sys = 0.31 CPU) Result: FAIL Failed 1/5 test programs. 1/71 subtests failed. dmake.exe: Error code 255, while making 'test_dynamic' How can i do for resolve this problem? Thanks a lot Best regards Simone Non sei a casa? Accedi a Messenger dal Web. 10 buoni motivi per scegliere Hotmail Personalizza il tuo Messenger con nuove e divertenti emoticon _ Il tuo mondo MSN a portata di clic. Scarica IE8 per MSN http://events.it.msn.com/internet-explorer-8
Problem whit PP
Hi, thanks for answer, now i get different problem: C:\Perl\produzi\Annulli_Tecniciexe_update.pl --info Comments=ciao Annulli_Tecnici.exe Can't load 'C:/Perl/site/lib/auto/Win32/Exe/InsertResourceSection/InsertResourceSection.dll' for module Win32::Exe::InsertResourceSection: load_file:Invalid access to memory location at C:/Perl/site/lib/XSLoader.pm line 70. at C:/Perl/site/lib/Win32/Exe/InsertResourceSection.pm line 29 Compilation failed in require at C:/Perl/site/lib/Win32/Exe.pm line 332. Mybe must add some to my .pl file first of compiled and when loaunch the command exe_update.pl --info Comments=ciao Annulli_Tecnici.exe ? How can i resolve this problem? Thanks Best regards From: zicozic...@hotmail.com To: par@perl.org Subject: RE: Problem whit PP Date: Thu, 1 Jul 2010 15:44:54 + Hi, i have try to registration to web site, but i get occured the follow message error: Si è verificato un problema nella sessione che identifica l'accesso; il sistema non ha eseguito il comando impartito per precauzione. Tornare alla pagina precedente con il tasto 'Indietro' del proprio browser, ricaricare la pagina e riprovare. How can i do for registration? Thanks By Simone From: zicozic...@hotmail.com To: par@perl.org Subject: Problem whit PP Date: Thu, 1 Jul 2010 15:32:01 + Hi, i have problem whit use pp, when i try to compiled source .pl in .ex this is ok, but when i launch the command for add information on file exe, i get error: C:\Perl\produzi\Annulli_Tecnici\binpp -N Comments=ciao -o Annulli_Tecnici.exe Annulli_Tecnici.pl Set up gcc environment - 3.4.5 (mingw-vista special r3) Set up gcc environment - 3.4.5 (mingw-vista special r3) Copyright (C) 2004 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. No resource section found in file parlMveo.exe at C:/Perl/site/lib/Win32/Exe.pm line 348. No resource section found in file parlMveo.exe at C:/Perl/site/lib/Win32/Exe.pm line 348. Access is denied. The version pp is 1.006 When i must try to do the test whit pp i get this: C:\Perl\PAR-Packer-1.006\PAR-Packer-1.006dmake test C:\Perl\bin\perl.exe -e chmod(oct('0600'), '..\blib\lib\PAR\StrippedPARL\Static.pm'); C:\Perl\bin\perl.exe encode_append.pl static.exe ..\blib\lib\PAR\StrippedPARL\Static.pm C:\Perl\bin\perl.exe -e chmod(oct('0444'), '..\blib\lib\PAR\StrippedPARL\Static.pm'); C:\Perl\bin\perl.exe -e chmod(oct('0600'), '..\blib\lib\PAR\StrippedPARL\Dynamic.pm'); C:\Perl\bin\perl.exe encode_append.pl par.exe ..\blib\lib\PAR\StrippedPARL\Dynamic.pm C:\Perl\bin\perl.exe -e chmod(oct('0444'), '..\blib\lib\PAR\StrippedPARL\Dynamic.pm'); C:\Perl\bin\perl.exe -MExtUtils::Command::MM -e test_harness(0, 'inc', 'blib\lib', 'blib\arch') t/00-pod.t t/10-parl-generation.t t/20-pp.t t/30-current_ exec.t t/40-packer_cd_option.t t/00-pod.t ... skipped: Set environment variable PERL_TEST_POD=1 to test POD t/10-parl-generation.t ... ok t/20-pp.t 31/34 No resource section found in file parltde9.exe at C:/Perl/site/lib/Win32/Exe.pm line 348. No resource section found in file parltde9.exe at C:/Perl/site/lib/Win32/Exe.pm line 348. Can't call method remove on an undefined value at C:/Perl/site/lib/Win32/Exe.pm line 473. # Failed test 'pp_gui_tests # amsg572: sub pp_gui_tests cannot system pp --gui --icon hi.ico -o hello.exe hello.pl:No such file or directory: # ' # at automated_pp_test.pl line 8445. t/20-pp.t 34/34 # Looks like you failed 1 test of 34. t/20-pp.t Dubious, test returned 1 (wstat 256, 0x100) Failed 1/34 subtests t/30-current_exec.t .. # Please wait t/30-current_exec.t .. ok t/40-packer_cd_option.t .. ok Test Summary Report --- t/20-pp.t (Wstat: 256 Tests: 34 Failed: 1) Failed test: 32 Non-zero exit status: 1 Files=5, Tests=71, 1797 wallclock secs ( 0.13 usr + 0.19 sys = 0.31 CPU) Result: FAIL Failed 1/5 test programs. 1/71 subtests failed. dmake.exe: Error code 255, while making 'test_dynamic' How can i do for resolve this problem? Thanks a lot Best regards Simone Non sei a casa? Accedi a Messenger dal Web. 10 buoni motivi per scegliere Hotmail Personalizza il tuo Messenger con nuove e divertenti emoticon _ Il tuo mondo MSN a portata di clic. Scarica IE8 per MSN http://events.it.msn.com/internet-explorer-8
Problem whit PP
Hi, i have problem whit use pp, when i try to compiled source .pl in .ex this is ok, but when i launch the command for add information on file exe, i get error: C:\Perl\produzi\Annulli_Tecnici\binpp -N Comments=ciao -o Annulli_Tecnici.exe Annulli_Tecnici.pl Set up gcc environment - 3.4.5 (mingw-vista special r3) Set up gcc environment - 3.4.5 (mingw-vista special r3) Copyright (C) 2004 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. No resource section found in file parlMveo.exe at C:/Perl/site/lib/Win32/Exe.pm line 348. No resource section found in file parlMveo.exe at C:/Perl/site/lib/Win32/Exe.pm line 348. Access is denied. The version pp is 1.006 When i must try to do the test whit pp i get this: C:\Perl\PAR-Packer-1.006\PAR-Packer-1.006dmake test C:\Perl\bin\perl.exe -e chmod(oct('0600'), '..\blib\lib\PAR\StrippedPARL\Static.pm'); C:\Perl\bin\perl.exe encode_append.pl static.exe ..\blib\lib\PAR\StrippedPARL\Static.pm C:\Perl\bin\perl.exe -e chmod(oct('0444'), '..\blib\lib\PAR\StrippedPARL\Static.pm'); C:\Perl\bin\perl.exe -e chmod(oct('0600'), '..\blib\lib\PAR\StrippedPARL\Dynamic.pm'); C:\Perl\bin\perl.exe encode_append.pl par.exe ..\blib\lib\PAR\StrippedPARL\Dynamic.pm C:\Perl\bin\perl.exe -e chmod(oct('0444'), '..\blib\lib\PAR\StrippedPARL\Dynamic.pm'); C:\Perl\bin\perl.exe -MExtUtils::Command::MM -e test_harness(0, 'inc', 'blib\lib', 'blib\arch') t/00-pod.t t/10-parl-generation.t t/20-pp.t t/30-current_ exec.t t/40-packer_cd_option.t t/00-pod.t ... skipped: Set environment variable PERL_TEST_POD=1 to test POD t/10-parl-generation.t ... ok t/20-pp.t 31/34 No resource section found in file parltde9.exe at C:/Perl/site/lib/Win32/Exe.pm line 348. No resource section found in file parltde9.exe at C:/Perl/site/lib/Win32/Exe.pm line 348. Can't call method remove on an undefined value at C:/Perl/site/lib/Win32/Exe.pm line 473. # Failed test 'pp_gui_tests # amsg572: sub pp_gui_tests cannot system pp --gui --icon hi.ico -o hello.exe hello.pl:No such file or directory: # ' # at automated_pp_test.pl line 8445. t/20-pp.t 34/34 # Looks like you failed 1 test of 34. t/20-pp.t Dubious, test returned 1 (wstat 256, 0x100) Failed 1/34 subtests t/30-current_exec.t .. # Please wait t/30-current_exec.t .. ok t/40-packer_cd_option.t .. ok Test Summary Report --- t/20-pp.t (Wstat: 256 Tests: 34 Failed: 1) Failed test: 32 Non-zero exit status: 1 Files=5, Tests=71, 1797 wallclock secs ( 0.13 usr + 0.19 sys = 0.31 CPU) Result: FAIL Failed 1/5 test programs. 1/71 subtests failed. dmake.exe: Error code 255, while making 'test_dynamic' How can i do for resolve this problem? Thanks a lot Best regards Simone _ Avatar per Messenger e sfondo per il PC. Creali gratis! http://www.experience.windows.com/landing2.aspx?culture=it-it
RE: Problem whit PP
Hi, i have try to registration to web site, but i get occured the follow message error: Si è verificato un problema nella sessione che identifica l'accesso; il sistema non ha eseguito il comando impartito per precauzione. Tornare alla pagina precedente con il tasto 'Indietro' del proprio browser, ricaricare la pagina e riprovare. How can i do for registration? Thanks By Simone From: zicozic...@hotmail.com To: par@perl.org Subject: Problem whit PP Date: Thu, 1 Jul 2010 15:32:01 + Hi, i have problem whit use pp, when i try to compiled source .pl in .ex this is ok, but when i launch the command for add information on file exe, i get error: C:\Perl\produzi\Annulli_Tecnici\binpp -N Comments=ciao -o Annulli_Tecnici.exe Annulli_Tecnici.pl Set up gcc environment - 3.4.5 (mingw-vista special r3) Set up gcc environment - 3.4.5 (mingw-vista special r3) Copyright (C) 2004 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. No resource section found in file parlMveo.exe at C:/Perl/site/lib/Win32/Exe.pm line 348. No resource section found in file parlMveo.exe at C:/Perl/site/lib/Win32/Exe.pm line 348. Access is denied. The version pp is 1.006 When i must try to do the test whit pp i get this: C:\Perl\PAR-Packer-1.006\PAR-Packer-1.006dmake test C:\Perl\bin\perl.exe -e chmod(oct('0600'), '..\blib\lib\PAR\StrippedPARL\Static.pm'); C:\Perl\bin\perl.exe encode_append.pl static.exe ..\blib\lib\PAR\StrippedPARL\Static.pm C:\Perl\bin\perl.exe -e chmod(oct('0444'), '..\blib\lib\PAR\StrippedPARL\Static.pm'); C:\Perl\bin\perl.exe -e chmod(oct('0600'), '..\blib\lib\PAR\StrippedPARL\Dynamic.pm'); C:\Perl\bin\perl.exe encode_append.pl par.exe ..\blib\lib\PAR\StrippedPARL\Dynamic.pm C:\Perl\bin\perl.exe -e chmod(oct('0444'), '..\blib\lib\PAR\StrippedPARL\Dynamic.pm'); C:\Perl\bin\perl.exe -MExtUtils::Command::MM -e test_harness(0, 'inc', 'blib\lib', 'blib\arch') t/00-pod.t t/10-parl-generation.t t/20-pp.t t/30-current_ exec.t t/40-packer_cd_option.t t/00-pod.t ... skipped: Set environment variable PERL_TEST_POD=1 to test POD t/10-parl-generation.t ... ok t/20-pp.t 31/34 No resource section found in file parltde9.exe at C:/Perl/site/lib/Win32/Exe.pm line 348. No resource section found in file parltde9.exe at C:/Perl/site/lib/Win32/Exe.pm line 348. Can't call method remove on an undefined value at C:/Perl/site/lib/Win32/Exe.pm line 473. # Failed test 'pp_gui_tests # amsg572: sub pp_gui_tests cannot system pp --gui --icon hi.ico -o hello.exe hello.pl:No such file or directory: # ' # at automated_pp_test.pl line 8445. t/20-pp.t 34/34 # Looks like you failed 1 test of 34. t/20-pp.t Dubious, test returned 1 (wstat 256, 0x100) Failed 1/34 subtests t/30-current_exec.t .. # Please wait t/30-current_exec.t .. ok t/40-packer_cd_option.t .. ok Test Summary Report --- t/20-pp.t (Wstat: 256 Tests: 34 Failed: 1) Failed test: 32 Non-zero exit status: 1 Files=5, Tests=71, 1797 wallclock secs ( 0.13 usr + 0.19 sys = 0.31 CPU) Result: FAIL Failed 1/5 test programs. 1/71 subtests failed. dmake.exe: Error code 255, while making 'test_dynamic' How can i do for resolve this problem? Thanks a lot Best regards Simone Non sei a casa? Accedi a Messenger dal Web. _ Importa i tuoi contatti di Facebook. Chiacchiera su Messenger! http://www.windowslive.it/importaAmici.aspx
Re: Problem whit PP
On Thu, Jul 1, 2010 at 5:32 PM, Zico Zicaus zicozic...@hotmail.com wrote: i have problem whit use pp, when i try to compiled source .pl in .ex this is ok, but when i launch the command for add information on file exe, i get error: C:\Perl\produzi\Annulli_Tecnici\binpp -N Comments=ciao -o Annulli_Tecnici.exe Annulli_Tecnici.pl No resource section found in file parlMveo.exe at C:/Perl/site/lib/Win32/Exe.pm line 348. Can you check your version of Win32::Exe, because that sounds like a problem that should have been fixed in recent versions. Cheers, Roderich
Re: problem with pp
On Jan 9, 2008 11:18 AM, Steffen Mueller [EMAIL PROTECTED] wrote: Roderich Schupp wrote: i.e. encode_append.pl refuses to overwrite the obsolete __DATA__ sections from the last build. Patch attached. Your patch looks good to me, but I can neither test or apply it currently. Feel free to commit. Tested and commited. Cheers, Roderich
Re: problem with pp
Thanks a lot .. Your support is great !! I learned a lot from you. PAR is such a great tool. I hope I know this eariler. On 1/9/08, Steffen Mueller [EMAIL PROTECTED] wrote: Hi Henry, Henry Wu henry.wu3-at-gmail.com |newsgroups5| wrote: I tried again and I put $|=1 before the print , but it is still not working and I can not see the print $dest_name\n; in STDOUT I modified par.pl as shown below. Please forgive me, Can you tell me the exact steps to get PAR source (URL) and compile. I usually use to use ActivePerl's ppm to install package. I am using ActivePerl Build 822 with latest PAR ( 0.976) packages in their repository Thanks a lot. You will need to build PAR::Packer from source. You need a C compiler for that. (For example MinGW.) What you do is: svn checkout http://svn.openfoundry.org/par/PAR-Packer/trunk cd trunk perl Makefile.PL make make test make install Then you have the current development version of PAR(::Packer). Since Roderich and Scott could originally reproduce your problem and consider it fixed with the suggested patch (and a fresh make from source), you also have the option to wait for a new PAR::Packer release 0.978. I will make no promises on when it will happen, however. Best regards, Steffen
Re: problem with pp
Hi Roderich, Roderich Schupp wrote: On Jan 9, 2008 9:57 AM, Roderich Schupp [EMAIL PROTECTED] wrote: Yeah, I had to nmake clean first to see the effects of the patch. BTW that indicates that the dependencies in myldr/Makefile are incomplete. Digging further...the dependencies are correct, the problem is the last step in the rebuild, regenerating blib\PAR\StrippedPARL\{Dynamic,Static}.pm: Ouch. That was me again. C:\Programme\ActivePerl\bin\perl.exe encode_append.pl .\par.exe ..\blib\lib\PAR\StrippedPARL\Dynamic.pm Output file '..\blib\lib\PAR\StrippedPARL\Dynamic.pm' does not have an empty __DATA__ section. Not appending encoded data from '.\par.exe'. This is NOT a fatal error! at encode_append.pl line 26. i.e. encode_append.pl refuses to overwrite the obsolete __DATA__ sections from the last build. Patch attached. This was intended as an optimization so since this might happen several times for each build, I did not want it to do the appending every time. Your patch looks good to me, but I can neither test or apply it currently. Feel free to commit. Best regards, Steffen
Re: problem with pp
Hi Henry, Henry Wu henry.wu3-at-gmail.com |newsgroups5| wrote: I tried again and I put $|=1 before the print , but it is still not working and I can not see the print $dest_name\n; in STDOUT I modified par.pl as shown below. Please forgive me, Can you tell me the exact steps to get PAR source (URL) and compile. I usually use to use ActivePerl's ppm to install package. I am using ActivePerl Build 822 with latest PAR ( 0.976) packages in their repository Thanks a lot. You will need to build PAR::Packer from source. You need a C compiler for that. (For example MinGW.) What you do is: svn checkout http://svn.openfoundry.org/par/PAR-Packer/trunk cd trunk perl Makefile.PL make make test make install Then you have the current development version of PAR(::Packer). Since Roderich and Scott could originally reproduce your problem and consider it fixed with the suggested patch (and a fresh make from source), you also have the option to wait for a new PAR::Packer release 0.978. I will make no promises on when it will happen, however. Best regards, Steffen
Re: problem with pp
Hi Henry, Henry Wu wrote: Thanks for your help. I just tried, Surprisingly the fix does not work. It seems that the fix does not have any effect at all. I am still getting the same error. Could you try again with the -s test removed from the following line in that patch I posted earlier? So in par.pl, if (! -f $dest_name or -s _ != $member-uncompressedSize()) { would become if (! -f $dest_name) { as Scott originally suggested. If *that* works, then the -s _ file test and the uncompressedSize thingy of Archive::Zip disagree for some reason. If that doesn't work, ... I have to think about this some more. I attached a very simple test perl script called testpp.pl. I attached the two dlls used as well. testpp.pl is very simple, only 10 lines. It just visita a https site and sleep after that. Sorry, but I can't test it. It's only going to break on Windows and I currently have no access to that. Best regards, Steffen
RE: problem with pp
I tried the patch and it worked for me, without the -f options since I don't have those packages installed. Make sure you are patching the par.pl in the source distribution and that you do a clean build and install of the PAR::Packer package with the patch applied. An incremental build after the change might not be enough. Also, you may see no debug output due to buffering. Try setting $|=1 at the top of the script. --Scott -Original Message- From: Roderich Schupp [mailto:[EMAIL PROTECTED] Sent: Tuesday, January 08, 2008 9:27 AM To: Steffen Mueller Cc: Henry Wu; Scott Stanton; par@perl.org Subject: Re: problem with pp On Jan 8, 2008 4:55 PM, Steffen Mueller [EMAIL PROTECTED] wrote: Sorry, but I can't test it. It's only going to break on Windows and I currently have no access to that. I can reproduce Henry's problem here (Active perl 5.8.8 with latest PAR::Packer). I can also reproduce that the fix doesn't work. I think that it's in the wrong place: when running testpp.exe with PAR_DEBUG=1 shouldn't I see the outs(...) messages in both cases - but there's no debug output at all. Cheers, Roderich
problem with pp
Hi, Thanks for creating the wonderful pp tool. I used pp to package a perl script into a windows command line exe program. I packaged openssl libeay32.dll and ssleay32.dll into the exe . It works great when I run the first copy of the exe program under windows command prompt. But while the first exe file is running in command prompt when I opened another command prompt and try to start the exe again, I got the following error. IO error: Can't open file C:\WINDOWS\TEMP\par-user1\cache-ba25a41f36fa1ede4847 bb07a7e328de501eb655\libeay32.dll for write : Permission denied at C:/programs/Perl/lib/Archive/Zip/Member.pm line 388 Archive::Zip::Member::extractToFileNamed('Archive::Zip::ZipFileMember=HA SH(0xfc03e0)', 'C:\WINDOWS\TEMP\par-user1\cache-ba25a41f36fa1ede4847bb07a7e... ') called at -e line 636 eval {...} called at -e line 171 __par_pl::BEGIN() called at -e line 898 eval {...} called at -e line 898 IO error: Can't open file C:\WINDOWS\TEMP\par-user1\cache-ba25a41f36fa1ede4847 bb07a7e328de501eb655\ssleay32.dll for write : Permission denied at C:/programs/Perl/lib/Archive/Zip/Member.pm line 388 Archive::Zip::Member::extractToFileNamed('Archive::Zip::ZipFileMember=HA SH(0xfc0530)', 'C:\WINDOWS\TEMP\par-user1\cache-ba25a41f36fa1ede4847bb07a7e... ') called at -e line 636 eval {...} called at -e line 171 __par_pl::BEGIN() called at -e line 898 eval {...} called at -e line 898 I can run the perl script directly in multiple command prompt windows at the same time without any problem. But I can not run more than one copy of the pp packaged exe at he same time. I do not know why. Please help !! How can I solve this problem ? Thanks Henry.
RE: problem with pp
I think the problem can be resolved with the following patch. Give it a try and let me know how it goes. --Scott --- par.pl 2008-01-07 10:36:58.166470600 -0800 +++ par.pl.new 2008-01-07 10:36:42.996128400 -0800 @@ -680,8 +680,12 @@ }x; my $extract_name = $1; my $dest_name = File::Spec-catfile($ENV{PAR_TEMP}, $extract_name); -$member-extractToFileNamed($dest_name); -outs(qq(Extracting $member_name to $dest_name)); +if (! -f $dest_name) { +$member-extractToFileNamed($dest_name); +outs(qq(Extracting $member_name to $dest_name)); +} else { +outs(qq(Skipping $member_name since it already exists at $dest_name)); +} } } # }}} -Original Message- From: Roderich Schupp [mailto:[EMAIL PROTECTED] Sent: Monday, January 07, 2008 7:30 AM To: Henry Wu Cc: par@perl.org Subject: Re: problem with pp On Jan 7, 2008 9:20 AM, Henry Wu [EMAIL PROTECTED] wrote: It works great when I run the first copy of the exe program under windows command prompt. But while the first exe file is running in command prompt when I opened another command prompt and try to start the exe again, I got the following error. IO error: Can't open file C:\WINDOWS\TEMP\par-user1\cache-ba25a41f36fa1ede4847 bb07a7e328de501eb655\libeay32.dll for write : Permission denied at C:/programs/Perl/lib/Archive/Zip/Member.pm line 388 Known bug, see http://groups.google.com/group/perl.par/browse_thread/thread/c631a645798 613fd/86c7564a15805126?lnk=gst PAR tries to extract the DLL a second time (and Windows won't let you write to a DLL that's still in use), though that's not supposed to happen. AFAICT no fix yet :( Cheers, Roderich
RE: problem with pp
Ideally we'd hash the file contents, but that's going to be too slow to do on every startup. Checking the expected size is a good compromise. It's a fast sanity check that should catch the most common problems. --Scott -Original Message- From: Steffen Mueller [mailto:[EMAIL PROTECTED] Sent: Monday, January 07, 2008 11:52 AM To: Scott Stanton Cc: Henry Wu; par@perl.org Subject: Re: problem with pp Hi Scott, thanks for chiming in. Scott Stanton schrieb: I think the problem can be resolved with the following patch. Give it a try and let me know how it goes. I think your patch resolves the specific issue. However, is there a case where testing -f might not be enough? Should we make sure the size is the same just in case a extraction was interrupted? Best regards, Steffen
Re: problem with pp
Thanks Guys. I will give a try today. I will let you know the results. Your support is the best !! On 1/7/08, Scott Stanton [EMAIL PROTECTED] wrote: Ideally we'd hash the file contents, but that's going to be too slow to do on every startup. Checking the expected size is a good compromise. It's a fast sanity check that should catch the most common problems. --Scott -Original Message- From: Steffen Mueller [mailto:[EMAIL PROTECTED] Sent: Monday, January 07, 2008 11:52 AM To: Scott Stanton Cc: Henry Wu; par@perl.org Subject: Re: problem with pp Hi Scott, thanks for chiming in. Scott Stanton schrieb: I think the problem can be resolved with the following patch. Give it a try and let me know how it goes. I think your patch resolves the specific issue. However, is there a case where testing -f might not be enough? Should we make sure the size is the same just in case a extraction was interrupted? Best regards, Steffen