<p>People also often ask "How can I compile Perl?" while what they really want is to create an executable that can run on machines even if they don't have Perl installed.</p>

<p>There are several solutions, I know of:</p>

<ol>
<li><a href="http://www.indigostar.com/perl2exe.htm" rel="noreferrer">perl2exe</a> of IndigoStar
It is commercial. I never tried. Its web site says it can cross compile Win32, Linux, and Solaris.</li>
<li><a href="http://www.activestate.com/Products/perl_dev_kit/" rel="noreferrer">Perl Dev Kit</a> from ActiveState. 
It is commercial. I used it several years ago on Windows and it worked well for my needs. According to its web site it works on Windows, Mac OS X, Linux, Solaris, AIX and HP-UX.</li>
<li><a href="http://search.cpan.org/dist/PAR/" rel="noreferrer">PAR</a> or rather <a href="http://search.cpan.org/dist/PAR-Packer/" rel="noreferrer">PAR::Packer</a> that is free and open source. Based on the test reports it works on the Windows, Mac OS X, Linux, NetBSD and Solaris but theoretically it should work on other UNIX systems as well.
Recently I have started to use PAR for packaging on Linux and will use it on Windows as well.</li>
</ol>

<p>Other recommended solutions?</p>

[{'answer_id': 77325, 'author': 'Bruce', 'author_id': 9698, 'author_profile': 'https://Stackoverflow.com/users/9698', 'pm_score': -1, 'selected': False, 'text': "<p>You could use the <code>perlcc</code> tool that's shipped with most distributions of Perl.  I've also found both <code>perl2exe</code> and Active State's Perl Dev kit useful for shipping Perl applications.</p>\n"}, {'answer_id': 80777, 'author': 'tsee', 'author_id': 13164, 'author_profile': 'https://Stackoverflow.com/users/13164', 'pm_score': 5, 'selected': True, 'text': '<p>In addition to the three tools listed in the question, there\'s another one called <a href="http://www.cavapackager.com/" rel="nofollow noreferrer">Cava Packager</a> written by Mark Dootson, who has also contributed to <a href="http://par.perl.org" rel="nofollow noreferrer">PAR</a> in the past. It only runs under Windows, has a nice Wx GUI and works differently from the typical three contenders in that it assembles all Perl dependencies in a source / lib directory instead of creating a single archive containing everything. There\'s a free version, but it\'s not Open Source. I haven\'t used this except for testing.</p>\n\n<p>As for PAR, it\'s really a toolkit. It comes with a packaging tool which does the dependency scanning and assembly of stand-alone executables, but it can also be used to generate and use so-called .par files, in analogy to Java\'s JARs. It also comes with <a href="http://search.cpan.org/dist/PAR-Repository-Client" rel="nofollow noreferrer">client</a> and <a href="http://search.cpan.org/dist/PAR-Repository" rel="nofollow noreferrer">server</a> for automatically loading missing packages over the network, etc. The <a href="http://steffen-mueller.net/talks/appdeployment/" rel="nofollow noreferrer">slides of my PAR talk</a> at <a href="http://yapceurope.org/" rel="nofollow noreferrer">YAPC::EU</a> 2008 go into more details on this.\nThere\'s also an active mailing list: par at perl dot org.</p>\n'}, {'answer_id': 992376, 'author': 'mcwong', 'author_id': 79547, 'author_profile': 'https://Stackoverflow.com/users/79547', 'pm_score': 1, 'selected': False, 'text': "<p>I'm a Perl newbie and I just downloaded Cava Packager and that's the only one I found working. I've tried ActiveState 5.10.1005 and Strawberry Perl with PAR-Packager on Windows XP. \npp just hangs in mid-stream and no executables created.</p>\n\n<p>Cava provides the only solution to creating exe on Windows so far. Thks.</p>\n"}, {'answer_id': 6082885, 'author': 'cavapack', 'author_id': 764127, 'author_profile': 'https://Stackoverflow.com/users/764127', 'pm_score': 3, 'selected': False, 'text': '<p>It is some time since this question was first asked, but <a href="http://www.cavapackager.com/" rel="noreferrer">Cava Packager</a> can currently produce executable packages for Windows, Linux and Mac OS X. It is no longer Windows only.</p>\n\n<p>Note: As indicated by my name, I am affiliated with Cava Packager.</p>\n'}]
['https://Stackoverflow.com/questions/77278', 'https://Stackoverflow.com', 'https://Stackoverflow.com/users/11827/']