Beefy Boxes and Bandwidth Generously Provided by pair Networks
Think about Loose Coupling
 
PerlMonks  

Creating PAR executables

by crabbdean (Pilgrim)
on Jun 11, 2004 at 08:04 UTC ( [id://363329]=perlquestion: print w/replies, xml ) Need Help??

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

I've written some code that includes two of my own modules. The top of my code includes this:
push (@INC,'H:\scr\pm'); require FileUtil_0_8_9_4; require logfile; use File::Spec; use Tk; use Tk::CheckbuttonGroup; use Tk::Checkbutton; use Config::IniFiles; use Win32;
I'm attempting to compile this into an executable using "pp" with the command:
H:\scr\pl\tmpclean>pp -M Win32::FileSecurity -M FileUtil_0_8_9_4.pm -M + logfile.pm -o tmpclean.exe tmpclean_3_3.pl
I get this error at runtime:
H:\scr\pl\tmpclean>tmpclean.exe Can't locate Win32/FileSecurity.pm in @INC (@INC contains: CODE(0xcce4 +64) . H:\scr\pm) at H:\scr\pm/FileUtil_0_8_9_4.pm BEGIN failed--compilation aborted at H:\scr\pm/FileUtil_0_8_9_4.pm lin +e 596. Compilation failed in require at script/tmpclean_3_3.pl line 13.
Obviously I'm doing something wrong in the compiling. Now I've done compiling like this before but this is the first time I've had to install my own personal packages or import additional modules into the exe. Can anyone offer suggestions? Thanks.

Dean
The Funkster of Mirth
Programming these days takes more than a lone avenger with a compiler. - sam
RFC1149: A Standard for the Transmission of IP Datagrams on Avian Carriers

Replies are listed 'Best First'.
Re: Creating PAR executables
by PodMaster (Abbot) on Jun 11, 2004 at 09:00 UTC
    Hi there. Try reading `perldoc pp'. Try adding -IH:/src/pm before -M

    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.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others admiring the Monastery: (2)
As of 2024-04-26 03:24 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found