Beefy Boxes and Bandwidth Generously Provided by pair Networks
laziness, impatience, and hubris
 
PerlMonks  

Re: Detecting failures easily/obviously with cpanm

by 1nickt (Canon)
on Jun 17, 2022 at 11:16 UTC ( [id://11144826]=note: print w/replies, xml ) Need Help??


in reply to Detecting failures easily/obviously with cpanm

Hi hippo,

For large numbers of modules I usually make use of cpanm's --installdeps switch, which requires building a list of modules you wish to install and saving to a simple formatted file typically named cpanfile. The output from this command (which I run with --quiet as already suggested by stevieb) includes failures at the end something like:

! Installing the dependencies failed: Module 'NOTstrictures' is not in +stalled ! Bailing out the installation for .

Hope this helps!


The way forward always starts with a minimal test.

Replies are listed 'Best First'.
Re^2: Detecting failures easily/obviously with cpanm
by hippo (Bishop) on Jun 17, 2022 at 11:25 UTC

    This sounds very promising, 1nickt - thank you. It might just be the best compromise and I will definitely give it a try.

    Update: Some three weeks on and I have now used this method several times for installing long lists of dependencies for applications. It does exactly what I want - thanks very much for the pointer.


    🦛

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others about the Monastery: (5)
As of 2024-04-25 13:49 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found