michaelg has asked for the wisdom of the Perl Monks concerning the following question:

Hi Monks ,
I'm using pp to package my code into exe , when I run the
exe on a different station , It seems that
it is looking for segments of my $path i.e it does not run
stand alone .
can U please hlp .
michaelg

Replies are listed 'Best First'.
Re: PP - does it require perl installation
by Jaap (Curate) on Oct 14, 2003 at 11:20 UTC
    Hi michaelg,

    What is the error message you get? What is your $PATH on the 'different station'? What modules does your progrm use?
      Hi Jaap Here is the diagnostics I get .
      I'm using a lot of Tk modules and PAR , when I PP the code
      I used the -M Module::m_name for all the Tk I use
      and for all the modules I wrote
      Use of uninitialized value in pattern match (m//)
      at /loader/0x481a08/utf8_heavy.pl line 164.
      Use of uninitialized value in scalar assignment
      at /loader/0x481a08/utf8_heavy.pl line 180.
      Use of uninitialized value in pattern match (m//)
      at /loader/0x481a08/utf8_heavy.pl line 181.
      Use of uninitialized value in scalar assignment
      at /loader/0x481a08/utf8_heavy.pl line 238.
      Use of uninitialized value in pattern match (m//)
      at /loader/0x481a08/utf8_heavy.pl line 241.
      Use of uninitialized value in scalar assignment
      at /loader/0x481a08/utf8_heavy.pl line 290.
      Use of uninitialized value in pattern match (m//)
      at /loader/0x481a08/utf8_heavy.pl line 291.
      panic: swash_fetch.
      at /users/michaelg/perl-5.8.0/lib/5.8.0/sun4-solaris/Tk/Widget.pm line 190
      Tk::Widget::new('Tk::Label','MainWindow=HASH(0xb31edc)','-background','#bdFbbb3baaaf') called
      at /users/michaelg/perl-5.8.0/lib/5.8.0/sun4-
      solaris/Tk/Widget.pm line 256
      Tk::Widget::__ANON__('MainWindow=HASH(0xb31edc)','-background','#bdFbbb3baaaf') called at script/rgp.pl line 102
      require main called at ../blib/lib/PAR.pm line 211 PAR::_run_member('Archive::Zip::ZipFileMember=HASH(0x551b58)',1) called at script/main.pl line 4
      require main called at ../blib/lib/PAR.pm line 211 PAR::_run_member('Archive::Zip::ZipFileMember=HASH(0x551c54)') called at ../blib/lib/PAR.pm line 189
      PAR::import('PAR') called at par.pl line 680
      eval {...} called at par.pl line 165
      __par_pl::BEGIN() called at /users/michaelg/perl-5.8.0/lib/5.8.0/sun4-solaris/Tk/Dialog.pm line 0
      eval {...} called at /users/michaelg/perl-
      5.8.0/lib/5.8.0/sun4-solaris/Tk/Dialog.pm line 0 at script/rgp.pl line 102
      Font -dt-interface user-medium-r-normal-s*-*-*-*-*-*-*-*-* still in cache.

      Thx for your help
      michaelg
        Hi. I seldom read PerlMonks, so it would help if you can forward that information to the PAR mailing list at par@perl.org -- with the PAR version you installed (the first line of output from "pp -V"), so we can solve this problem. :-)