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

Hi

I use Cygwin for just about anything command line, including perl. However, not all of my co-workers have cygwin (or perl for that matter), so I decided to use PAR::packer to create a standalone executable of my script (see below for dummied down try.pl). So, I ran pp -o try.exe try.pl in my Cygwin environment producing the expected try.exe, which, when run in Cygwin, produces the desired output. However, when I open up a CMD terminal, change directories to where try.exe is located, and run it, I get the following error:

    Usage: try [ -Alib.par ] [ -Idir ] [ -Mmodule ] [ src.par ] [ program.pl ]
    try [ -B|-b ] [-Ooutfile] src.par

Googling for this type of error did not yield very useful results. Does anyone have any suggestions?

Thanks in advance!

use strict; use warnings; print "hello world\n";

Replies are listed 'Best First'.
Re: Use PAR::packer to create EXE from Cygwin for CMD
by Anonymous Monk on Jan 13, 2010 at 17:14 UTC
    I'm guessing it is probably related to path separators and temp directories, and par.pl ...
    set PAR_GLOBAL_DEBUG=1
    and try again , see PAR::Environment