Beefy Boxes and Bandwidth Generously Provided by pair Networks
Do you know where your variables are?
 
PerlMonks  

Understanding the blib environment produced by 'perl Makefile.PL' and 'make test'

by tod222 (Pilgrim)
on Sep 11, 2008 at 18:58 UTC ( [id://710713]=perlquestion: print w/replies, xml ) Need Help??

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

Monks,

I omitted from Makefile.PL a newly required module which resulted in errors during 'make test'. Now obviously this is an error (which I've since fixed).

Said module is installed on the system since it's where the code is developed, and running the code by hand worked fine.

Even though I've solved the problem, I'm curious to know what's special about the blib environment produced by 'perl Makefile.PL' and 'make test' that caused the error?

Thanks.

Replies are listed 'Best First'.
Re: Understanding the blib environment produced by 'perl Makefile.PL' and 'make test'
by syphilis (Archbishop) on Sep 12, 2008 at 00:32 UTC
    I omitted from Makefile.PL a newly required module

    Do you mean that, in the Makefile.PL, you forgot to supply WriteMakefile() with a PREREQ_PM => 'X', argument (where X is the "newly required module") ? That omission won't cause any problems at all iff X has already been installed.

    And the inclusion of the PREREQ_PM => 'X', argument won't usually fix any problems - save that it may prompt CPAN.pm to first install X for you (if X is not already present).

    Without knowing what the actual errors were, it's hard to speculate further.

    Cheers,
    Rob
      ...omission won't cause any problems at all iff X has already been installed.
      Thanks, that's what I thought.

      I think the error was a combination of omitting a needed 'make clean' and running 'prove -b' instead of 'prove -l' so that an outdated blib was getting used instead of the current lib directory.

      Thanks again for your response.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others taking refuge in the Monastery: (7)
As of 2024-03-29 00:07 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found