Beefy Boxes and Bandwidth Generously Provided by pair Networks
XP is just a number

Re^3: PDF::Create fails on install

by MidLifeXis (Monsignor)
on Nov 27, 2013 at 14:25 UTC ( #1064624=note: print w/replies, xml ) Need Help??

in reply to Re^2: PDF::Create fails on install
in thread PDF::Create fails on install

This is why you should always declare *all* your pre-requisites in Makefile.PL, even those that you know are pulled in by other pre-reqs, and you should always 'use' *all* the modules you refer to.

Can I assume that you do not mean that you should also list those packages that you do not directly use?

For example, let's assume that I use the Foo::Bar package, and Foo::Bar uses Biz::Bang and Biz::Biff under the hood. I also make a call to Biz::Biff::frobnitz() from within my code. I am assuming that you are saying:

  • I should do a use Biz::Biff.
  • I should list Foo::Bar and Biz::Biff as prerequisites.
I am also assuming that you are not saying that I should list Biz::Bang as a prerequisite, as that is an implementation detail of Foo::Bar, and unrelated to my own code.

I just want to clarify my understanding, since my parser is coming up with two different meanings of your statement. If this is the correct reading of your statement, I agree 100%. As a clarification, I would probably s/your pre-requisites/your direct pre-requisites/.


Replies are listed 'Best First'.
Re^4: PDF::Create fails on install
by DrHyde (Prior) on Nov 28, 2013 at 12:02 UTC
    You assume correctrly.

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1064624]
[1nickt]: marioroy Yes, I am using it with MCE, as is Discipulus I believe. I was trying to work out how to make a cpanfile that would be smart enough to know which deps to require.
[1nickt]: See this code. (I expected to simply eval loading threads as a check, but weirdness happened with Perlbrew so it's a grep of -V ...)
[choroba]: Config might be better than grepping -V
[Corion]: Also see Config::V, which is less of that hackery, or that hackery hidden in a module ;)
[1nickt]: The problem was with Perlbrew
[Corion]: Whoops - Config::Perl::V
[1nickt]: I found that when using Perlbrew as recommended, with cpanminus in the system perl lib, such tests were failing to detect the data about the perl that was the install destination.

How do I use this? | Other CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (8)
As of 2017-10-18 15:37 GMT
Find Nodes?
    Voting Booth?
    My fridge is mostly full of:

    Results (249 votes). Check out past polls.