develooper Front page | perl.par | Postings from May 2008

How to build exe using pp to ignore PERL5LIB environment variable

Thread Next
From:
Henry Wu
Date:
May 28, 2008 02:53
Subject:
How to build exe using pp to ignore PERL5LIB environment variable
Message ID:
b2676700805271409s20bb74a6lf8e92202648a1d69@mail.gmail.com
Hi,
   Thanks for creating the wonderful pp tool.

 I packaged an executable abc.exe from perl script using pp.  Worked
fine for most of users, But some users have existing old perl
installation and have environmental variable PERL5LIB set. When these
users run the abc.exe, they saw the following messages.

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.

   ===================
If the users  put the following two lines in a dos bat file and
doubleclick the bat file to run, and the abc.exe runs OK for all
users.

==== abc_wrapper.bat ==
set PERL5LIB=
./abc.exe
================

So is there a way to package exe file to ignore the PERL5LIB
environmental variable using pp ? If pp can do this, all users can get
the exe file and run successfully independent of their environments.
Even when  users have old perl installation and have  PERL5LIB set,
uses can run the packaged exe without problem.

This is extreamly useful for me and many pp users.
=============
please help.  Thanks a lot

Henry

Thanks !!

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