Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl: the Markov chain saw
 
PerlMonks  

Help debugging failed module install

by Special_K (Monk)
on Apr 22, 2020 at 17:20 UTC ( [id://11115898]=perlquestion: print w/replies, xml ) Need Help??

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

I am trying to install the CGI::Builder module using the following command:

cpanm -L$PWD CGI::Builder

It starts installing the dependencies, then dies at the following:

# Failed test at t/02_features.t line 49. # Looks like you failed 1 test of 17. t/02_features.t ........ Dubious, test returned 1 (wstat 256, 0x100) Failed 1/17 subtests Can't stat ../lib: No such file or directory at /home/specialk/perl_modules/lib/perl5/Test/Pod.pm line 223. t/test_pod.t ........... ok t/test_pod_coverage.t .. ok

How do I go about debugging this? Can I ignore it? The log file does give me the following option:

-> FAIL Installing CGI::Builder failed. See <path_to_log>/build.log fo +r details. Retry with --force to install it.

The build.log file referenced in the above message is where all of the code quoted text in my post comes from.

Replies are listed 'Best First'.
Re: Help debugging failed module install
by haukex (Archbishop) on Apr 22, 2020 at 17:26 UTC

    CGI::Builder was last updated 14 years ago. It's not doing well on CPAN Testers, and according to #123293, the tests started failing with CGI >= 3.16. Although it's probably safe to force install the module, I would very strongly recommend going with one of the many more modern alternatives. See UP-TO-DATE Comparison of CGI Alternatives.

Re: Help debugging failed module install
by Corion (Patriarch) on Apr 22, 2020 at 17:25 UTC

    In such situations, I usually look at the distribution:

    cpanm --look -L$PWD CGI::Builder perl Makefile.PL make make test # see failure perl -Ilib t/02_features.t # watch sparks fly

    Ideally I find and fix the bug (and maybe even report it upstream). Then I can do make install .

Re: Help debugging failed module install
by marto (Cardinal) on Apr 22, 2020 at 20:43 UTC

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: perlquestion [id://11115898]
Approved by haukex
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-04-23 13:10 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found