OM2 has asked for the wisdom of the Perl Monks concerning the following question:

I want to create an executable from a Perl script

I've tried Activestate - don't want to spend $299 I've tried Perl2Exe from Indigostar - doesn't wok (+ costs $50)

I've seen plenty of users say they used CPan's pp - PAR Packager

I've looked this up and just can't figure out where to start

I've spent a LOT of time trying!

Is there a dummies guide somewhere? (I've searched and can't find)

The instructions seem to suggest that you need to have a terminal login and type unix like commands - these are instructions for the Windows OS

Any pointers?

Thanks

OM

  • Comment on Need help using CPan's pp - PAR Packager

Replies are listed 'Best First'.
Re: Need help using CPan's pp - PAR Packager
by marto (Cardinal) on Jun 07, 2012 at 10:37 UTC
Re: Need help using CPan's pp - PAR Packager
by hominid (Priest) on Jun 07, 2012 at 12:41 UTC
Re: Need help using CPan's pp - PAR Packager
by dasgar (Priest) on Jun 07, 2012 at 15:46 UTC

    I admit that it took me a while to get a grasp on how to get started with the pp utility that's part of PAR::Packer too. Don't know if there's a guide out there or not, but I'll list the steps getting started with 32-bit Perl on Windows. There were some caveats and gotcha's along the way with using 64-bit Perl on Windows with the compiler stuff, but can't remember those details. So, I'll just stick with 32-bit Perl for this post.

    • ActiveState's ActivePerl
      • Use ActiveState's PPM utility (in GUI mode or line command mode) to install MinGW and dmake.
      • Optional: Use PPM to install Win32::Exe, which is a module used by PAR::Packer. For some reason, I've had a few instances where it seemed easier to install this from PPM rather than CPAN. (If any other modules fail during install from CPAN, try installing them from PPM and retry installing PAR::Packer again.)
      • Open up a command prompt and type the following: cpan install PAR::Packer
        • If the install fails, try opening a command prompt as administrator (right-click and choose run as administrator) and try again.
        • If that doesn't work, try forcing the install by typing the following: cpan install -f PAR::Packer
      • That's it. PAR::Packer should be installed along with the pp utility.
    • Strawberry Perl
      • Already has MinGW and dmake installed. Follow steps above to install PAR::Packer from CPAN.

    The steps above should get you going. Next, just look at the documentation for the pp utility and you'll be on your way.

    NOTE: If you're behind a web proxy, you might need to configure the http_proxy setting for the CPAN module or add the http_proxy environment variable to the OS.