I'm on Windows 7 Enterprise SP1 64bit.

I have ActiveState Perl v5.10.1 built for MSWin32-x86-multi-thread installed.

C:\Perl\site\bin\pp.bat -V shows
Set up gcc environment - 3.4.5 (mingw-vista special r3)
PAR Packager, version 0.991 (PAR version 1.002)

My Perl script

#!c:\parperl\bin\perl
use warnings;
use strict;
print ("\nHello World!\n");


My pp command line

C:\Perl\site\bin\pp.bat -T -C -o test001.exe test001.pl


test001.exe runs fine on my system and on Windows systems with no Perl 
installed however when I run test001.exe on a system with Perl v5.6.1 installed 
the script fails and generates the following popup error window.

Problem signature:
  Problem Event Name:   APPCRASH
  Application Name:     test001.exe
  Application Version:  0.0.0.0
  Application Timestamp:        4b058b51
  Fault Module Name:    Perl56.dll
  Fault Module Version: 5.6.1.628
  Fault Module Timestamp:       3b439bb1
  Exception Code:       c0000005
  Exception Offset:     00055ddf
  OS Version:   6.1.7601.2.1.0.256.4
  Locale ID:    1033
  Additional Information 1:     0a9e
  Additional Information 2:     0a9e372d3b4ad19135b953a78882e789
  Additional Information 3:     0a9e
  Additional Information 4:     0a9e372d3b4ad19135b953a78882e789

At first I thought the program was finding the locally installed Perl via the 
path so I removed the path in the command console before running test001.exe 
(set path=).

A popup error occurred saying it couldn't find Perl56.dll.

---------------------------
test001.exe - System Error
---------------------------
The program can't start because Perl56.dll is missing from your computer. Try 
reinstalling the program to fix this problem. 
---------------------------

I have tried all possible combinations of the following with no success.

1. Removing the bang line from test001.pl

2. Adding -B to the pp.bat command line (which is on by default so this 
shouldn't have worked anyway)

3. Removing the path before running the script

4. Removing entries from @INC


If I rename the Perl directory from C:\Perl to C:\xPerl then test001.exe runs 
fine.

The question is how to I create test001.exe so that it ignores the locally 
installed Perl on the system?

Thanks,
keith

-- 

Keith R. Watson                        Georgia Institute of Technology
IT Support Professional Lead           College of Computing
keith.wat...@cc.gatech.edu             801 Atlantic Drive NW
(404) 385-7401                         Atlanta, GA 30332-0280


Reply via email to