Beefy Boxes and Bandwidth Generously Provided by pair Networks
The stupid question is the question not asked
 
PerlMonks  

Problem in creating exe using PAR module

by srikrishnan (Beadle)
on Mar 05, 2010 at 05:47 UTC ( #826868=perlquestion: print w/ replies, xml ) Need Help??
srikrishnan has asked for the wisdom of the Perl Monks concerning the following question:

I have created a perl script for filling PDF form using CAM::PDF module. For GUI I have used Tk Module. I have successfully done that script, it works well as per my expectation.

But now I want to run that script in users machine, which are all not having perl installed. So I try to create exe using PAR module.

Exe is working in my system well but it is not working in the users system.

I have checked all CAM::PDF dependencies and add those in my argument file

FYR: Below I have pasted the dependencies list i used in my argument file

-M Tk -M Win32 -M File::Basename -M Data::UUID -M File::BOM -M Tk::Dialog -M Tk::Balloon -M Tk::Labelframe -M Tk::Message -M Tk::Spinbox -M Tk::Text -M CAM::PDF -M Getopt::Long -M Tie::Hash::NamedCapture -M English -M Test::More -M Crypt::RC4 -M Text::PDF -M Compress::Zlib -M Digest::MD5 -M Pod::Usage -M Cwd

please anybody can help us to solve this problem

Thanks in Advance

Srikrishnan R.

Comment on Problem in creating exe using PAR module
Download Code
Re: Problem in creating exe using PAR module
by cdarke (Prior) on Mar 05, 2010 at 07:04 UTC
    not working in the users system

    What happens when you try to run it? Please supply as much information as you can, "not working" is not helpful.
Re: Problem in creating exe using PAR module
by Anonymous Monk on Mar 05, 2010 at 08:29 UTC
    This is how you test on your machine
    $ pp .... -o myhotstuff.exe ... $ set path= $ myhotstuff.exe
    If you forgot something, myhotstuff.exe won't run on your machine either.

      Hi,

      Thanks for your reply.

      Earlier itself some of my perl scripts are not working properly when I try to make exe. Because of some dependencies are not properly identified by PAR module. But I dont know how to identify what are the dependencies it fails to load into the exe.

      Is there any possibility to identify such things, if it is, anybody will explain it in detail?

      Also, instead of unzipping the exe in user profiles "temp" folder, is there anyway to make a setup file and install all those files in users "program files" folder?

      If anybody help us to resolve my above two questions, it would be a great help for me

      thanks

      Srikrishnan R.

        Also, instead of unzipping the exe in user profiles "temp" folder, is there anyway to make a setup file and install all those files in users "program files" folder?

        Um, its a single exe file, you click on it and it runs.

        Another option is Cava Packager

        Alternatively you can create your own perl distribution .msi type installer, see Perl::Dist::WiX

Re: Problem in creating exe using PAR module
by ZlR (Chaplain) on Mar 05, 2010 at 13:12 UTC

    You can rename the exe par created to .zip and look inside that to see what it packed : maybe you'll see something you know you need that is missing.

    Most of the times i had your problem though i solved it by runing pp on a client machine (ie exact same os) on which we installed perl and par and uninstalled once everything was running ok.

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: perlquestion [id://826868]
Approved by planetscape
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others pondering the Monastery: (6)
As of 2014-08-29 05:53 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The best computer themed movie is:











    Results (275 votes), past polls