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

I was trying to extract a simple "Hello, World!" script using the code:
pp -o helloWin.exe hello.pl

But it returns a "Not a recognizable command error"

I have everything installed, Parse::Binary, Win32::Exe, Module:ScanDeps, PAR::Dist, and PAR. Does anyone know how to fix this?

Replies are listed 'Best First'.
Re: Package Extraction
by oko1 (Deacon) on Apr 08, 2008 at 00:59 UTC

    What happens when you run 'perl hello.pl'? What happens when you do 'pp -p hello.pl' (which would create 'a.par') and then 'pp -o helloWin.exe a.par'? You need to do a little more troubleshooting before trying to zero in on the problem.

    
    -- 
    Human history becomes more and more a race between education and catastrophe. -- HG Wells
    
      If I run  perl hello.pl, it works as it should, but it seems that the command line doesn't recognize "pp" as a function. I installed the Package Extractor three times already, but it never recognizes "pp" as a command.

        A large part of the problem is that you appear to either be (incorrectly) quoting the error from memory or trying to paraphrase it; this is always a mistake. Either copy and paste the exact error into your email, or tell us that it's not a literal error.

        If it's just a "File not found" error, that's a different animal altogether; "pp" is most likely not in your path, just as GrandFather said. Try using the Windows' "find" feature to figure out where it is - if it's there at all - and whether that folder is in your path. One thing that I've seen happen on occasion is that spaces in the directory names (something that's common in Windows) can create problems.

        
        -- 
        Human history becomes more and more a race between education and catastrophe. -- HG Wells
        
Re: Package Extraction
by GrandFather (Saint) on Apr 08, 2008 at 01:14 UTC

    Have you checked to see that pp is on the path? You may need to provide a path to pp as part of the command line.

    BTW, what OS are you using and what was the actual error message?


    Perl is environmentally friendly - it saves trees
      I have the command line set to C:\ when I run pp, and I'm running Windows XP. I don't know where pp should be installed though, would it be in a Perl or ActivePerl directory?

        Most likely its path is c:\Perl\bin\pp.


        Perl is environmentally friendly - it saves trees