More information,

when environmental variable PERL5LIB has some value.   for exmaple
C:/user/perl/lib

I put     print "INC [EMAIL PROTECTED]";    in my perl script and build abc.exe.
When I run abc.exe   I got the following results:

INC 
=C:\WINDOWS\TEMP\par-user234\cache-4cd99632dfdc54373502468518cbf1937587a68e\inc\lib
C:\WINDOWS\TEMP\par-user234\cache-4cd99632dfdc54373502468518cbf1937587a68e\inc
CODE(0xf15dbc) CODE(0xf15fa8)

The value in PERL5LIB did not show in @INC, but when I run the abc.exe
on some users' machine,   the following error shows:

IO object version 1.21 does not match bootstrap parameter 1.23 at
C:/programs/Perl/lib/DynaLoader.pm line 252.
Compilation failed in require at C:/programs/Perl/lib/IO/Handle.pm line 263.
BEGIN failed--compilation aborted at C:/programs/Perl/lib/IO/Handle.pm line 263.
Compilation failed in require at C:/programs/Perl/lib/IO/Seekable.pm line 101.
BEGIN failed--compilation aborted at
C:/programs/Perl/lib/IO/Seekable.pm line 101.
Compilation failed in require at C:/programs/Perl/lib/IO/File.pm line 133.
BEGIN failed--compilation aborted at C:/programs/Perl/lib/IO/File.pm line 133.
Compilation failed in require at -e line 313.

=======================================
when I remove PER5LIB environmental variable, the abc.exe runs well on
all users' machine.

So I guess  the PERL5LIB is in effect when abc.exe tries to extract
itself for the first time.   That extracting code failed because of
PERL5LIB value.   So the perl code failed before the exe file can
expand itself and before the final perl script run.

I do not quite understand the PAR code structure, but I guess that
could be the problem.

Please help.

Thanks a lot.

On 5/28/08, Henry Wu <[EMAIL PROTECTED]> wrote:
> Thanks for your help and reply.
>  I am using perl 5.88  activestate perl
>
> PAR-Packer   0.976
> PAR              0.976
>
> it seems that PERL5LIB is exported to the produced exe in this version.
>
> Thanks.
>
>
> On 5/28/08, Steffen Mueller <[EMAIL PROTECTED]> wrote:
> > Hi Eugene,
> >
> > Eugene Olbinsky wrote:
> > > Hello Steffen, all !
> > > I work with: perl, v5.8.0 built for sun4-solaris-thread-multi
> > >         on sun-stations with solaris 8 or solaris 10.
> > > I use very old versions of PAR, PAR::Packer which are more than enough 
> > > for my purposes:
> > >
> > > 26-> perl -MPAR -MPAR::Packer -e 'print 
> > > "$PAR::VERSION\n$PAR::Packer::VERSION\n"'
> > > 0.90
> > > 0.12
> >
> > Well, 0.90 doesn't clean @INC, so that's expected. However, your input
> > is still valuable in that it shows it's most likely an old version of
> > PAR on Henry's machine causing PERL5LIB to be recognized inside a
> > packaged application.
> >
> > On an unrelated note, I'm surprised there's still 5.8.0's in the wild. I
> > can *remotely* see why people might stick to 5.6.x, but 5.8.*0* is very,
> > very broken.
> >
> > Best regards,
> > Steffen
> >
>

Reply via email to