| Store | Cart
Lists » pdk

Re: Issues with compiling code via command line/script

From: Jan Dubois <j...@activestate.com>
Fri, 28 Jun 2013 10:42:52 -0700
I suspect that you some kind of virus scanner that is checking the
generated *.exe file as soon as it is written to disk. Unfortunately
PerlApp needs to re-open the generated file in some circumstances. So
if your virus scanner opens the file before PerlApp is done, then the
file is locked and cannot be re-opened by PerlApp.

In you particular case, I suspect that the re-opening happens to add
the icon file, so you could try to run the command without the --icon
option to see if this improves the situation.

Also, I assume that H: is a network drive.  Writing the executable to
a local disk may change the timing, so PerlApp may have a chance to
re-open the file before the virus scanner gets to it.  So try using
something like "--exe C:\temp\hello.exe" and see if that makes a
difference.

Cheers,
-Jan


On Fri, Jun 28, 2013 at 12:23 AM, Ashley Hoff <AHo...@da.com.au> wrote:
> Greetings all,>> I am having a bit of a problem running perlapp at the command line to> compile an exe.  The command I am running is as follows:>> H:\PERL_DEV >perlapp.exe --force --freestanding --clean --verbose --icon> "H:\PERL_DEV\Hoppies_EXE_Compiler_Script\App.ico" helloWorld.pl --tmpdir> "C:\temp">> The Error message I am getting is as follows:>> Can't reopen 'helloWorld.exe' for write: Permission denied at> /<C:\Program Files (x86)\ActiveState Perl Dev Kit> 9.0.1\bin\lib\pdklib.dll>Win32/PE.pm line 413.>> The issue occurs from any basic 1 line app, with no additional modules> included.  The issue appears to be rather inconsistent.  I would say> that I am getting this error possibly 4 out of evey 6 attempts.  I have> checked and it appears that I have full administrator access to my local> C:\ drive.>> I am running Perl V5.8.9 and PDK V9.0.1 (32 bit version) on a Windows 7> Pro Service Pack 1 64 Bit.>> Has anyone else come across this issue?  Does anyone have any> pointers/areas I should be looking at.>> Cheers> Ashley> _______________________________________________> PDK mailing list> P...@listserv.ActiveState.com> To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs
_______________________________________________
PDK mailing list
P...@listserv.ActiveState.com
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs

Recent Messages in this Thread
Ashley Hoff Jun 28, 2013 07:23 am
Jan Dubois Jun 28, 2013 05:42 pm
Ashley Hoff Jun 30, 2013 11:24 pm
Messages in this thread