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

Hi, I need help. When I try to run an executable I built using pp I get the following error: Can't locate Win32.pm in @INC (@INC contains: .) at -e line 826. This is the command I use when I am making the exe file: >pp –o hello hello.pl Thanks for your time. Amin
  • Comment on Problem with Par::Packer and the pp comand

Replies are listed 'Best First'.
Re: Problem with Par::Packer and the pp comand
by glasswalk3r (Friar) on Apr 23, 2007 at 22:21 UTC

    I've got stucked in the same issue, but it was related to create a PPM package by hand. Looks like Active Perl is not smart enough (don't know why) to look at the default PPM repository in the machine for default modules that comes with the Active Perl distribuition. At the time, my problem lied with the Hash::Util module.

    While is a ugly solution, you can just remove this from the options to pp and it should work (but I would document as necessary). The real bad side, if you're creating PPM packages, is that you won't be able to check module version either. Hope someday they'll fix that...

    Alceu Rodrigues de Freitas Junior
    ---------------------------------
    "You have enemies? Good. That means you've stood up for something, sometime in your life." - Sir Winston Churchill
      I'm also using active perl. I don't get your solution! can you please give me more details?

        I didn't test it, but you may want to try to use the option --exclude-module=MODULE from the pp to not include the Win32:: modules.

        Check the pp documentation that comes with the ActivePerl that, for some strange reason, is on the Pragma section (on my ActivePerl 5.8.8 rev 820, at least).

        Alceu Rodrigues de Freitas Junior
        ---------------------------------
        "You have enemies? Good. That means you've stood up for something, sometime in your life." - Sir Winston Churchill