cpm
cpm copied to clipboard
Issues installing DBD::Pg
To reproduce:
docker run --platform linux/amd64 --rm -it perldocker/perl-tester:5.36
In Docker container:
curl -O https://cpan.metacpan.org/authors/id/T/TU/TURNSTEP/DBD-Pg-3.16.1.tar.gz
cpm install DBD-Pg-3.16.1.tar.gz
The result should be:
cpm install DBD-Pg-3.16.1.tar.gz
DONE install DBI-1.643
--- 1/2 ---Can't call method "effective_prereqs" on an undefined value at /usr/local/lib/perl5/site_perl/5.36.0/App/cpm/Worker/Installer.pm line 356.
FAIL install DBD-Pg-3.16.1
1 distribution installed.
DBD-Pg suppresses the generation of MYMETA.json https://metacpan.org/release/TURNSTEP/DBD-Pg-3.16.1/source/Makefile.PL#L235
cpm does not support such modules.
Thank you so much @skaji for the quick and excellent help. ❤️ Do you think it would be possible for cpm to emit a more descriptive error message in this sort of case?
Let me think about it. This is also related to https://github.com/skaji/cpm/issues/230.