Beefy Boxes and Bandwidth Generously Provided by pair Networks
Keep It Simple, Stupid

Creating PAR executables

by crabbdean (Pilgrim)
on Jun 11, 2004 at 08:04 UTC ( #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 -M + -o tmpclean.exe
I get this error at runtime:
H:\scr\pl\tmpclean>tmpclean.exe Can't locate Win32/ in @INC (@INC contains: CODE(0xcce4 +64) . H:\scr\pm) at H:\scr\pm/ BEGIN failed--compilation aborted at H:\scr\pm/ lin +e 596. Compilation failed in require at script/ 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.

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?

What's my password?
Create A New User
Node Status?
node history
Node Type: perlquestion [id://363329]
Approved by Corion
and all is quiet...

How do I use this? | Other CB clients
Other Users?
Others scrutinizing the Monastery: (6)
As of 2018-04-27 03:42 GMT
Find Nodes?
    Voting Booth?