Beefy Boxes and Bandwidth Generously Provided by pair Networks
There's more than one way to do things
 
PerlMonks  

How do I compile my script so that it becomes a standalone executable?

( #5521=categorized question: print w/ replies, xml ) Need Help??
Contributed by Anonymous Monk on Mar 17, 2000 at 08:44 UTC
Q&A  > programs and processes


Answer: How do I compile my script so that it becomes a standalone executable?
contributed by Anonymous Monk

There is one program out there called perl2exe
This website is: http://www.indigostar.com/perl2exe.htm

It is a really good program, but the problem is that if you don't register it you get a message at the end that lasts a couple of seconds before the script exits.

Answer: How do I compile my script so that it becomes a standalone executable?
contributed by Sniper

Activestate PerlApp (not free) is very very cool,
there is a lot of options :

- only convert into exe
- convert for freestanding
- remote debugger (debugger on a computer, script on another...

PerlApp is a part of Perl Dev Kit see the PDK site

David "Sniper" Rigaudiere
$Perl::Mongers(Paris => 'http://paris.mongueurs.net');

Answer: How do I compile my script so that it becomes a standalone executable?
contributed by btrott

Make sure you read all of this, to ensure that you're doing this for the "right" reasons--that is, it probably won't make your program run much faster, and it won't make your code more secure (ie., by "hiding" the source).

Answer: How do I compile my script so that it becomes a standalone executable?
contributed by Mr. Muskrat

Check out the Perl Archive Toolkit.

Answer: How do I compile my script so that it becomes a standalone executable?
contributed by Anonymous Monk

However, you must know that PerlApp does not "compile" your script.

It encrypts it and places it in an exe file. The related libraries , used packages are also placed there.

When you run the exe, the exe uncompressed the libraries and the source and the interpreter is started. It is almost the same as running "perl your own program".

From my own experience,

Equinox

Answer: How do I compile my script so that it becomes a standalone executable?
contributed by Flame

There are several options mentioned here.

Answer: How do I compile my script so that it becomes a standalone executable?
contributed by devslashneil

man perlcc

:)

Please (register and) log in if you wish to add an answer



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • Outside of code tags, you may need to use entities for some characters:
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.
  • Log In?
    Username:
    Password:

    What's my password?
    Create A New User
    Chatterbox?
    and the web crawler heard nothing...

    How do I use this? | Other CB clients
    Other Users?
    Others chanting in the Monastery: (7)
    As of 2014-09-16 06:10 GMT
    Sections?
    Information?
    Find Nodes?
    Leftovers?
      Voting Booth?

      My favorite cookbook is:










      Results (157 votes), past polls