perl588 PAR PP bug?


O

O

As a follow-up from an earlier post I am having problems with running
a compiled perl executable. If I include the -d option on the PP
command line the resulting executable fails with...

Can't locate Win32.pm in @INC (@INC contains: .) at -e line 786.
BEGIN failed--compilation aborted at -e line 971.
Can't locate File/Temp.pm in @INC (@INC contains: .) at -e line 162.
END failed--call queue aborted at -e line 974.

The script source is...

print "Hello World\n";

I googled for hours and I think that there is something wrong with the
PAR build and/or the perl58.dll but I could not locate a way to
resolve this. I running Perl5.8.8. with the latest PAR & PAR-
Packer(0.976) on Windows XPsp3

Has anyone come across this problem and know how to resolve it?
 
Ad

Advertisements

B

Ben Morrow

Quoth O said:
As a follow-up from an earlier post I am having problems with running
a compiled perl executable. If I include the -d option on the PP
command line the resulting executable fails with...

Can't locate Win32.pm in @INC (@INC contains: .) at -e line 786.
BEGIN failed--compilation aborted at -e line 971.
Can't locate File/Temp.pm in @INC (@INC contains: .) at -e line 162.
END failed--call queue aborted at -e line 974.

The script source is...

print "Hello World\n";

I have had exactly this problem, and I never found a solution beyond not
using -d. The problem seems to be that Win32.pm is loaded by the perl
core really early, before PAR has a chance to insert its hooks into
@INC; I don't really understand why not using -d makes a difference to
that.

Ben
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads


Top