http://www.perlmonks.org?node_id=1013297


in reply to Generating an exe file on Win32

What distribution of Perl are you using? Also, which version: 32-bit or 64-bit?

If you are using Strawberry Perl, it already comes with the mingw compiler and dmake, which allows you to install modules from directly CPAN (including those that need to be compiled).

For 32-bit ActivePerl, you'll need install mingw and dmake from the default ActiveState PPM repository. Then you'll be able to install modules from CPAN that need to be compiled. For 64-bit ActivePerl, I believe that there's more steps needed, but it's been over a year since I looked into it.

Once you have mingw and dmake for you Perl installation, you can install PAR::Packer. Then you can use the pp utility from PAR::Packer to create your executable files.

Another alternative that others might suggest is Cava Packager. That site will also recommend using Citrus Perl. I personally have not used either of those.

UPDATE: Another alternative is ActiveState's PerlApp, which is in their PDK and Pro Studio packages that they sell. However, the my original post had free alternatives to perl2exe.