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

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

Thread Next
Blair Sutton
December 29, 2004 08:07
PAR 0.86 - solution to "Can't locate in @INC" on Win32
Message ID:
I see several people have been having a similar problem to me. This may 
be related to the ChangeLog item (just a guess!): -

"Remove (and from the bundled dependencies."

I've traced this down to parl.exe not being passed @INC in

A solution is to hand edit site/lib/PAR/ 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 

This appears to allow me to compile a simple working executable although 
  it will need more testing.


Thread Next Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at | Group listing | About