Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Issues installing DBD::Pg #234

Open
oalders opened this issue Mar 14, 2023 · 3 comments
Open

Issues installing DBD::Pg #234

oalders opened this issue Mar 14, 2023 · 3 comments

Comments

@oalders
Copy link
Contributor

oalders commented Mar 14, 2023

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.
@skaji
Copy link
Owner

skaji commented Mar 14, 2023

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.

@oalders
Copy link
Contributor Author

oalders commented Mar 14, 2023

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?

@skaji
Copy link
Owner

skaji commented Mar 14, 2023

Let me think about it. This is also related to #230.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants