Beefy Boxes and Bandwidth Generously Provided by pair Networks
Think about Loose Coupling
 
PerlMonks  

Perl to exe problem using PDK

by sivaramanm (Acolyte)
on Jun 19, 2009 at 06:33 UTC ( [id://772943]=perlquestion: print w/replies, xml ) Need Help??

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

Hi Monks,

My script has Archive::Extract module. When I try to convert the script to exe using PDK 8, getting error as

Can't locate ExtUtils/MM_Win32.pm in @INC (@INC contains:) at (eval 64) line 3.

BEGIN failed--compilation aborted at validate_v1.pl line 6.

please advice.

thanks

siva

Replies are listed 'Best First'.
Re: Perl to exe problem using PDK
by rovf (Priest) on Jun 19, 2009 at 07:46 UTC

    Your @INC path is empty. You need to set it (either using PERL5LIB or use lib or the -I switch), so that Perl can find the module.

    -- 
    Ronald Fischer <ynnor@mm.st>
      That module is CORE, it should already be in @INC

        Good point. But this means that either @INC was explicitly changed in some BEGIN section, or the Perl installation itself was broken, because even without setting any PERL5LIB variable, @INC should at least contain the path to the core libraries.

        To check the installation, one could do a

        perl -lwe "print @INC"
        on the Windows command line. On my system, this yields
        c:/perl/site/libc:/perl/lib.
        (and, no, I have no idea where the dot after lib comes from, but on Windows, LIB and LIB. are presumably the same anyway). If @INC is empty here too, the installation is broken (but then Perl should find *no* Core modules at all). So, more likely, there must be some BEGIN section which resets @INC....

        -- 
        Ronald Fischer <ynnor@mm.st>
Re: Perl to exe problem using PDK
by Anonymous Monk on Jun 19, 2009 at 07:06 UTC
    When I try to convert the script to exe using PDK 8,

    How are you trying to do that (what commands)? Maybe you should require ExtUtils::MM_Win32;?

      Maybe you should require ExtUtils::MM_Win32;
      The OP must have done something like this (or more likely, the Archive module he used did a use of that), otherwise he wouldn't have got this error message...

      -- 
      Ronald Fischer <ynnor@mm.st>
Re: Perl to exe problem using PDK
by rovf (Priest) on Jun 19, 2009 at 09:10 UTC

    I only now noticed that the error appears within an eval, executed during BEGIN. Maybe it would be a good idea to locate that eval block and see what gets evaluated here...

    -- 
    Ronald Fischer <ynnor@mm.st>

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: perlquestion [id://772943]
Approved by rovf
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others meditating upon the Monastery: (6)
As of 2024-09-16 15:16 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    The PerlMonks site front end has:





    Results (22 votes). Check out past polls.

    Notices?
    erzuuli‥ 🛈The London Perl and Raku Workshop takes place on 26th Oct 2024. If your company depends on Perl, please consider sponsoring and/or attending.