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

Hi, I'm having a problem compiling a perl script to run in my windows 7 32 bits environment. It compiles with Perl Dev Kit from active state, but when I run it (in the command line of dos) it just freezes - no anwer. The compilation gives no error. Does anyone knows why this might be happening? Cheers.

Replies are listed 'Best First'.
Re: Perl executable problem
by choroba (Cardinal) on Nov 12, 2015 at 13:48 UTC
    Are you able to compile and run a simpler script? Try with something like
    print "Hello world!\n";
    لսႽ† ᥲᥒ⚪⟊Ⴙᘓᖇ Ꮅᘓᖇ⎱ Ⴙᥲ𝇋ƙᘓᖇ
Re: Perl executable problem
by hippo (Archbishop) on Nov 12, 2015 at 13:52 UTC
Re: Perl executable problem
by kennethk (Abbot) on Nov 12, 2015 at 15:45 UTC
    I'm going to fundamentally say exactly what choroba and hippo said, but will use more words.

    You have a lot of moving parts here, and so effective debugging says you should figure out how to test individual components. Consider the following:

    1. Can you run a simple one-liner on the command line? e.g., perl -E "say 'Hello'";
    2. Can you run your intended script in your IDE (presumably Komodo)?
    3. Can you run your intended script, uncompiled, on the command line? e.g., perl my_script.pl
    4. Can you compile a simple program with Perl Dev Kit and run it on the command line? e.g., print "Hello\n"; as the entire script.
    5. Can you run your intended script, uncompiled, on the command line in a different location? Changing paths might reveal a dependency issue you missed.

    And a review of Basic debugging checklist would likely be helpful.


    #11929 First ask yourself `How would I do this without a computer?' Then have the computer do it the same way.

      Hi

      All the commands with perl (-E "say 'hello'"; or perl script.pl) runs perfectly. In the IDE - Perl Builder - also. Perl Dev Kit compiled programs...no. It just hangs...It just stays "thinking"...

        So the executable as built by PerlApp hangs even when the script is:

        use strict; use warnings; print "Hello\n";
        ?

        #11929 First ask yourself `How would I do this without a computer?' Then have the computer do it the same way.

Re: Perl executable problem
by james28909 (Deacon) on Nov 13, 2015 at 01:57 UTC
    in perlapp gui, go to option 2 tab and select "display all warnings" and "verbose logging during run". then go to the output tab and make the executable. does it display anyting about anything missing or any warnings at all?