I wonder if anyone can please take a look at this output,
in the hope that something well-known is going wrong, and
just tell me what it is, please?

I am using ActiveState Perl 5.8.0.806 running PAR 0.67 on Win98.
I am using pp to create executables that will run on Win2K/WinXP.
First I just used a "hello world" test script to get pp operational:

All I did was 'pp script.pl' on the perl box to get the 'a.exe'.
Then I copied 'perl58.dll' and 'a.exe' to the non-perl box.
Then I ran the 'a.exe'.
It immediately returns 'Invalid argument at par.pl line 404.'.
Then I installed the ActiveState perl distro onto the non-perl box,
and the error went away.
So then I uninstalled ActiveState Perl, and the error *didn't* come back.

Given that after installing/uninstalling perl the a.exe worked,
I tried to compile my whole Perl/Tk script with it anyway,
which uses IO::Handle, Win32::TieRegistry, and Tk.pm with a
whole collection of widgets, of course.

When I used this commandline:
pp -M IO::Handle -M Win32::TieRegistry -M Win32API::Registry -M Tk
script.pl

And I ran the a.exe I got this error:
Can't locate Win32API/Registry/cRegistry.pc in @INC
(@INC contains: CODE(0xbf223 8) CODE(0xcbf3f4) .) at
/loader/0xcbf3f4/Win32API/Registry.pm line 104.
Compilation failed in require at
/loader/0xcbf3f4/Win32/TieRegistry.pm line 26.
BEGIN failed--compilation aborted at
/loader/0xcbf3f4/Win32/TieRegistry.pm line 26.
Compilation failed in require at script/tk.pl line 51.
BEGIN failed--compilation aborted at script/tk.pl line 51.

So I thought, ooh, I'll use this commandline:
pp -M IO -M IO::Handle -M Win32 -M Win32::TieRegistry
-M Win32API -M Win32API::Registry -M Tk script.pl

But when I ran the a.exe I got this error:
Can't open perl script "a":
No such file or directory at script/main.pl line 6.

It seems to me that when I haven't included every module on
the commandline with a -M switch, I get the first error,
but if I do include everything it still bombs out with
the second error.

Can anyone please tell me if there are any obvious
faults with how I am using pp? Will 0.69 make a big difference?
Thanks.
Anil

Reply via email to