Beefy Boxes and Bandwidth Generously Provided by pair Networks
more useful options
 
PerlMonks  

Re: .pl to .exe

by pm5 (Acolyte)
on Sep 03, 2003 at 13:47 UTC ( [id://288635]=note: print w/replies, xml ) Need Help??


in reply to .pl to .exe

There is also perlcc, and PAR on CPAN, which contains a program "pp". Both of which can make standalone windows or linux executables. I've never tried any of them, though.

Replies are listed 'Best First'.
Re: Re: .pl to .exe
by flounder99 (Friar) on Sep 03, 2003 at 15:52 UTC
    PAR works quite well on Windows once you get it installed. I could not install it using ppm but I was able to install it like this:
    C:\>ppm install par-dist C:\>perl -MPAR::Dist -e "install_par('http://cpan.org/modules/by-autho +rs/id/A/AU/AUTRIJUS/PAR-0.74')"
    you then can create an executable by doing this:
    C:\>pp -o myscript.exe myscript.pl
    I recommend you then use upx to shrink the executable.
    I have to admit I haven't used it on any horribly complex scripts but it has alway worked on the ones I have tried. It is nice because you can use the .exe file on any windows computer even if it doesn't have perl installed. (even if you can't fit them on a floppy)

    Update: Try running this:

    C:\>pp -o hello.exe -e "print 'hello world!'" C:\>hello hello world!
    you get a nice 1.36M hello.exe which upx's down to 909k.

    --

    flounder

Re: Re: .pl to .exe
by Arbogast (Monk) on Sep 03, 2003 at 13:57 UTC
    On Linux, for some things, I call the Perl Program from a Bash Script. Then I turn the Bash Script into an executable icon in KDE, Howto is in the KDE menus somewhere. Then people can use the program without knowing anything about how your Linux comp works. That gives .exe type functionality.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others pondering the Monastery: (5)
As of 2024-03-28 20:51 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found