Beefy Boxes and Bandwidth Generously Provided by pair Networks
laziness, impatience, and hubris
 
PerlMonks  

PP - am I crazy or what!?

by michaelg (Beadle)
on Oct 14, 2003 at 17:01 UTC ( [id://299186]=perlquestion: print w/replies, xml ) Need Help??

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

Hi Monks,

I'm using pp (PAR.75) in order to create a stand alone exe
I run 'pp -B -o rgp rgp.pl'
OK it seems wonderful , it run on every station that we have
but when I ran it on other stations (i.e not
connected in any way ) I got messages that include my perl path :
PAR::_run_member('Archive::Zip::ZipFileMember=HASH(0x55114c)') 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

my path regarding perl is:
/users/michaelg/perl-5.8.0/bin/
/users/michaelg/perl-5.8.0/PAR-0.75/blib/script/
/users/michaelg/perl-5.8.0/Tk804.025/blib/script/

The whole thing seems fishy ,so I grep the exe output
file and I got this :
rgp:#line 2 "/users/michaelg/perl-5.8.0/lib/site_perl/5.8.0/Archive/Zip.pm"
rgp:## Configured by : michaelg
rgp:archlibexp='/users/michaelg/perl-5.8.0/lib/5.8.0/sun4-solaris'
rgp:installarchlib='/users/michaelg/perl-5.8.0/lib/5.8.0/sun4-solaris'
rgp:installprivlib='/users/michaelg/perl-5.8.0/lib/5.8.0'
rgp:prefix='/users/michaelg/perl-5.8.0'
rgp:privlibexp='/users/michaelg/perl-5.8.0/lib/5.8.0'
rgp:archlib='/users/michaelg/perl-5.8.0/lib/5.8.0/sun4-solaris'
rgp:bin='/users/michaelg/perl-5.8.0/bin'
rgp:binexp='/users/michaelg/perl-5.8.0/bin'
rgp:cf_by='michaelg'

does any of you know how to make the exe pure stand alone

Thnks Guys
michaelg

Replies are listed 'Best First'.
Re: PP - am I crazy or what!?
by PodMaster (Abbot) on Oct 14, 2003 at 21:02 UTC
    How did the installation of PAR go (did all the tests pass)? Which version of Tk do you have? Can you share rgp.pl (or do you have a minimal test case)? You should contact the authors of PAR.

    update: I did experience some issues with the latest version of Tk (Tk804.025_beta2), so it may be related somehow (just guessing).

    MJD says "you can't just make shit up and expect the computer to know what you mean, retardo!"
    I run a Win32 PPM repository for perl 5.6.x and 5.8.x -- I take requests (README).
    ** The third rule of perl club is a statement of fact: pod is sexy.

Re: PP - am I crazy or what!?
by teabag (Pilgrim) on Oct 15, 2003 at 13:17 UTC
    I also had some trouble with standalone scripts made with PAR and found out it doesn't automatically import all TK modules you used. I think it also doesn't follow modules that are used by other modules you used in your script.

    F.I. I used

    use Tk;
    Which worked in my normal perl script but to get it working with PAR as a PAR standalone executable I had to use:
    use Tk; use Tk::Menubutton; use Tk::Text; use Tk::FileSelect;
    The same goes for:
    use IO::File; use File::Find;
    One of these seems to use Carp::Heavy;

    When I included the extra modules my standalone exe worked like a charm. I found out which modules were missing by running the exe from the commandline on a machine on which I have no perl installed. The error output tell you the missing modulename. In your case you have to include at least;

    use Archive::Zip; use Tk::Dialog;
    I hope it solves your problems. It worked for me ;)
    P.S. If it all works you might want to use the option --gui to get rid of the dos window.


    Teabag
    Sure there's more than one way, but one just needs one anyway - Teabag
      Hi TB
      Well I tried all these but maybe I missed somthin
      I'll try to do it agian (now I know it is a common bug)
      The problem is I tried it with only one button or one
      Label and It didn't work , so it sacre me a lil.
      Thanks anyway , live long and prosper
      michaelg :+)

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: perlquestion [id://299186]
Approved by TStanley
Front-paged by broquaint
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (7)
As of 2024-04-25 14:30 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found