Skip Menu |

This queue is for tickets about the PAR CPAN distribution.

Report information
The Basics
Id: 9226
Status: resolved
Priority: 0/
Queue: PAR

People
Owner: Nobody in particular
Requestors: bsdz [...] numeninest.com
Cc:
AdminCc:

Bug Information
Severity: Critical
Broken in: 0.86
Fixed in: (no value)



Subject: "Can't locate Cwd.pm in @INC" on Win32
I see several people have been having a similar problem to me. This may be related to the ChangeLog item (just a guess!): - "Remove Cwd.pm (and Cwd.so) from the bundled dependencies." I've traced this down to parl.exe not being passed @INC in Packer.pm. A solution is to hand edit site/lib/PAR/Packer.pm and add this line: - foreach my $d (@INC) { unshift @args, "-I$d" }; after "my @args = ('-B', "-O$output", $par_file);" on line 1221 in _generate_output subroutine. This just appends your current @INC path to parl.exe's command line arguments. This appears to allow me to compile a simple working executable although it will need more testing.
On Mi. 29. Dez. 2004, 11:10:43, BSDZ wrote: Show quoted text
> I see several people have been having a similar problem to me. This > may be related to the ChangeLog item (just a guess!): - > > "Remove Cwd.pm (and Cwd.so) from the bundled dependencies." > > I've traced this down to parl.exe not being passed @INC in Packer.pm. > > A solution is to hand edit site/lib/PAR/Packer.pm and add this line: - > > foreach my $d (@INC) { unshift @args, "-I$d" }; > > after "my @args = ('-B', "-O$output", $par_file);" on line 1221 in > _generate_output subroutine. > > This just appends your current @INC path to parl.exe's command line > arguments. > > This appears to allow me to compile a simple working executable > although it will need more testing.
Hi, sorry for the late reply. I have picked up PAR maintenance and I am churning through the old tickets. Does this problem still apply to the most current PAR release (0.941)? If so, please provide a simple albeit complete example demonstrating the problem. Steffen