miyagawa / cpanminus

cpanminus - get, unpack, build and install modules from CPAN
http://cpanmin.us
755 stars 213 forks source link

Add message 'Writing log file into .../build.log' #632

Open KES777 opened 3 years ago

KES777 commented 3 years ago
Fetching http://www.cpan.org/authors/id/L/LE/LEONT/ExtUtils-Helpers-0.026.tar.gz ... OK
Configuring ExtUtils-Helpers-0.026 ... OK
Building and testing ExtUtils-Helpers-0.026 ... OK
Successfully installed ExtUtils-Helpers-0.026
! Installing the dependencies failed: Module 'CPAN::Common::Index' is not installed, Module 'CPAN::Meta::Check' is not installed
! Bailing out the installation for Menlo-1.9019.
! Installing the dependencies failed: Module 'Menlo' is not installed
! Bailing out the installation for Menlo-Legacy-1.9022.
--> Working on Path::Tiny
Fetching http://www.cpan.org/authors/id/D/DA/DAGOLDEN/Path-Tiny-0.118.tar.gz ... OK
Configuring Path-Tiny-0.118 ... OK
Building and testing Path-Tiny-0.118 ... OK
Successfully installed Path-Tiny-0.118
! Installing the dependencies failed: Module 'Menlo::CLI::Compat' is not installed
! Bailing out the installation for Carton-v1.0.34.
23 distributions installed

Where can I find full log about why Menlo is not installed?

how to reproduce:

perlbrew use perl-5.35.1
cpanm -L local Carton
KES777 commented 3 years ago

Found at top:

Work directory is /home/kes/.cpanm/work/1626518081.27655

It fails because Test::Deep depends on Mojo::Base

t/ignore.t .................. ok
t/import.t .................. ok
Can't locate Mojo/Base.pm in @INC (you may need to install the Mojo::Base module) (@INC co
BEGIN failed--compilation aborted at /home/kes/work/projects/tucha/monkeyman/lib/A.pm line
Compilation failed in require at /home/kes/perl5/perlbrew/perls/perl-5.35.1/lib/5.35.1/bas
        ...propagated at /home/kes/perl5/perlbrew/perls/perl-5.35.1/lib/5.35.1/base.pm lin
BEGIN failed--compilation aborted at t/isa.t line 133.
t/isa.t ..................... skipped: (no reason given)
t/leaf-wrapper.t ............ ok
t/listmethods.t ............. ok
t/memory.t .................. ok
t/methods.t ................. ok
t/none.t .................... ok
t/notest.t .................. ok
t/notest_extra.t ............ ok
t/number.t .................. ok
t/reftype.t ................. ok
t/regexp.t .................. ok
t/regexpref.t ............... ok
t/rt78288_blessed_object.t .. ok
t/scalar.t .................. ok
t/scalarref.t ............... ok
t/set.t ..................... ok
t/shallow.t ................. ok
t/string.t .................. ok

Test Summary Report
-------------------
t/isa.t                   (Wstat: 512 Tests: 0 Failed: 0)
  Non-zero exit status: 2
Files=39, Tests=1204,  4 wallclock secs ( 0.28 usr  0.05 sys +  3.22 cusr  0.47 csys =  4.
Result: FAIL
Failed 1/39 test programs. 0/1204 subtests failed.
Makefile:911: recipe for target 'test_dynamic' failed
make: *** [test_dynamic] Error 255
-> FAIL Installing Test::Deep failed. See /home/kes/.cpanm/work/1626517668.18955/build.log
-> FAIL Installing the dependencies failed: Module 'Test::Deep' is not installed
-> FAIL Bailing out the installation for CPAN-Meta-Check-0.014.
Already tried File::pushd. Skipping.

It would be helpful to output:

Writing log file into /home/kes/.cpanm/work/1626518081.27655/build.log

Also it more correct to write Working directory instead of Work directory (but here I could be wrong)