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

Re^2: Check the dependencies of modules you want to install

by thomas895 (Hermit)
on Oct 24, 2012 at 01:29 UTC ( #1000536=note: print w/ replies, xml ) Need Help??


in reply to Re: Check the dependencies of modules you want to install
in thread Check the dependencies of modules you want to install

It would be even more handy if it could tell me the order in which I needed to install the missing dependencies
That would be handy, agreed, but usually when using cpan or cpanp(not sure about cpanm, never used it), the dependencies are automatically installed for you. That's handy, until one distribution in the chain of many decides to fail on a test or make, in which case you get to start over again(for the most part).

I don't think I can do it with just CPANDeps' XML, I would likely have to poll many sources to get that information.

~Thomas~ 
"Excuse me for butting in, but I'm interrupt-driven..."


Comment on Re^2: Check the dependencies of modules you want to install
Re^3: Check the dependencies of modules you want to install
by syphilis (Canon) on Oct 24, 2012 at 03:50 UTC
    I don't think I can do it with just CPANDeps' XML, I would likely have to poll many sources to get that information.

    Does the "depth" field tell us anything useful in regard to a module's position in the dependency chain ?

    I certainly wouldn't advocate pulling in more sources, as the nice feature of this script is the promptness with which it provides the information.
    The only other thing it fails to detect is the case where the version of the dependency that is already installed is not sufficiently recent. (To remedy this would also require significant additional overhead.)
    Anyway, like I said, I'll be making good use of it as is ;-)

    I opened up one of the XML files in my browser, and found this near the beginning of the file:
    This is an experimental XML interface. It's structure and location may change. If you want them to change, please ask. Please try to avoid kicking the shit out of my server, it's only little and doesn't like being bullied.
    So there's a couple of things of which we need to be mindful.

    Cheers,
    Rob

      Does the "depth" field tell us anything useful in regard to a module's position in the dependency chain ?
      I actually did not notice that when I read over the XML. Hmm, I'll think about adding that, somehow.

      The only other thing it fails to detect is the case where the version of the dependency that is already installed is not sufficiently recent.
      Now that I can try to fix. I will update this node when I make a fix to that...
      Update: Nope, I would have to go scanning Makefiles etc., CPAN Deps doesn't provide the version number :-(

      ~Thomas~ 
      "Excuse me for butting in, but I'm interrupt-driven..."

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1000536]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others romping around the Monastery: (8)
As of 2014-12-21 16:09 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    Is guessing a good strategy for surviving in the IT business?





    Results (106 votes), past polls