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

Hi all. Trying to install Graph::Dijkstra on Windows using cpanm. Everything goes great until it hits a dependency:
C:\Users\boss\Dropbox (ASU)\ONR GNNs\athlete concussions\network reduc +tion\tfidf lt 0 dot 8>cpanm Graph::Dijkstra Set up gcc environment - gcc.exe (rubenvb-4.5.4) 4.5.4 --> Working on Graph::Dijkstra Fetching http://www.cpan.org/authors/id/D/DD/DDALLEN/Graph-Dijkstra-0. +70.tar.gz ... OK Configuring Graph-Dijkstra-0.70 ... OK ==> Found dependencies: XML::LibXML --> Working on XML::LibXML Fetching http://www.cpan.org/authors/id/S/SH/SHLOMIF/XML-LibXML-2.0208 +.tar.gz ... OK ==> Found dependencies: Alien::Libxml2 --> Working on Alien::Libxml2 Fetching http://www.cpan.org/authors/id/P/PL/PLICEASE/Alien-Libxml2-0. +19.tar.gz ... OK Configuring Alien-Libxml2-0.19 ... OK Building and testing Alien-Libxml2-0.19 ...
Then it just sits there indefinitely. Any ideas what I can try to get it working?

Replies are listed 'Best First'.
Re: Graph::Dijkstra install hanging on dependency
by Athanasius (Archbishop) on Dec 27, 2022 at 04:46 UTC

    Hello cormanaz,

    I’m on Windows 8.1, 64-bit, running Strawberry Perl 5.32.1.1. I already had Alien::Libxml2 installed (v0.17), so I upgraded it to v0.19 to see what happened — and it installed without any problems. So, I don’t know what’s failing on your system. What does the cpanm build.log file show immediately before it hangs?

    When I tried to install Graph::Dijkstra, test t/01-core.t failed on line 12; but this was easily fixed by changing:

    ok("$PINF" eq '1.#INF', "positive infinity, $PINF");

    to

    ok("$PINF" eq 'Inf', "positive infinity, $PINF");

    and after that Graph::Dijkstra installed for me without any problems.

    Hope that helps,

    Athanasius <°(((><contra mundum סתם עוד האקר של פרל,

Re: Graph::Dijkstra install hanging on dependency
by SankoR (Prior) on Dec 27, 2022 at 01:40 UTC
Re: Graph::Dijkstra install hanging on dependency
by Anonymous Monk on Dec 27, 2022 at 05:08 UTC
    Focus on getting Alien::Libxml2 installed first. Search perlmonks too because others have had issues installing that module. Don't give up!