develooper Front page | perl.par | Postings from December 2004

PAR 0.86 - solution to "Can't locate Cwd.pm in @INC" on Win32

Thread Next
From:
Blair Sutton
Date:
December 29, 2004 08:07
Subject:
PAR 0.86 - solution to "Can't locate Cwd.pm in @INC" on Win32
Message ID:
20041229153928.28305.qmail@lists.develooper.com
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.

Blair

Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About