in reply to Re^3: Compile Perl To Executable
in thread Compile Perl To Executable

Our conversation in the CB isn't a productive use of either of our time. First ensure you know which Perl you're running, you claim to have tired both Strawberry and ActiveState:

perl -V

IIRC ActiveState perl installs to c:\perl by default. Strawberry to c:\strawberry, so you've either changed this during installation, or the error above is coming from ActiveState perl rather than Strawberry (which you claimed was the only Perl you had at the time). Since you're new to all this, my advice is to run only one Perl. I suggest you stick to Strawberry perl.

Install modules using the cpan command, for example from the Windows command prompt:

cpan pp

This will install pp and all the other modules it needs. When people are telling you exactly what to type into the command prompt, don't report errors which result from running a different command. This is a waste of time for everyone concerned and only confuses the issue.

Once you have installed pp (and the modules this script you've found online requires) you can create a executable by running the following:

pp -x scriptname.pl

This will generate a.exe as an output (I've confirmed this works, Strawberry Perl, Windows XP). Please read and understand the pp documentation regarding general use and options available.

Replies are listed 'Best First'.
Re^5: Compile Perl To Executable
by JackRoss (Initiate) on Jan 09, 2012 at 17:09 UTC
    Yes, finally work. I told you i need a simply how-to :) Only one issue, need to download 3 time pp, every time a different module error but at the last work, three days wasted... Thanks again

      "Yes, finally work. I told you i need a simply how-to :)"

      Well I'm glad this was helpful. I did say the exact same thing in the chatterbox ;)

      "Only one issue, need to download 3 time pp, every time a different module error but at the last work"

      I suspect these "errors" were caused warnings about modules you didn't have installed which pp requires. Using the method I suggested you avoid such problems.

      "three days wasted..."

      The were not wasted if you learned from it :) I suspect this is partly due to the learning curve and so on. Welcome to the monastery :) So you've downloaded a script from somewhere and managed to create an executable of it, if you want to get to learn more about perl I suggest you take a look at the following: