miyagawa / cpanminus

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

Can not install from vendor. Provide error that `cpanfile` was missed #644

Closed KES777 closed 2 years ago

KES777 commented 2 years ago
# cpanm --from "$PWD/vendor/cache/" --installdeps --notest .
--> Working on .
Configuring /home/ekonkov ... N/A
! Configuring . failed. See /root/.cpanm/work/1656330016.9692/build.log for details.

# cat /root/.cpanm/work/1656330016.9692/build.log
cpanm (App::cpanminus) 1.7046 on perl 5.034001 built for x86_64-linux
Work directory is /root/.cpanm/work/1656330016.9692
You have make /usr/bin/make
You have /usr/bin/wget
You have /bin/tar: tar (GNU tar) 1.30
Copyright (C) 2017 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <https://gnu.org/licenses/gpl.html>.
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.

Written by John Gilmore and Jay Fenlason.
You have /usr/bin/unzip
--> Working on .
Entering /home/ekonkov
Configuring /home/ekonkov
-> N/A
! Configuring . failed. See /root/.cpanm/work/1656330016.9692/build.log for details
#

Here was my fault. I miss cpanfile.
May you please fix cpanm to warn about missed cpanfile. So error message will be meaningful instead of just N/A

miyagawa commented 2 years ago

I don't disagree that the error is not optimal, but cpanm can work without cpanfile if it has Makefile.PL etc. so it can't say that you need cpanfile for this.

KES777 commented 2 years ago

Ok, agree. But a slightly more verbosity could save hours trying to understand what is wrong. Especially for new comers. Why not to have more friendly interface? ;-)