-
Notifications
You must be signed in to change notification settings - Fork 73
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
Devel::CheckLib not listed as a dependency? #263
Comments
It is a configure phase dependency. Your CPAN.pm is out of date. cpanm would also work. |
I'm having the same issue with cpanm with this new version: # cpanm --version
cpanm (App::cpanminus) version 1.7044 (/opt/perl5/bin/cpanm)
perl version 5.028000 (/opt/perl5/perls/perl-5.28.0/bin/perl)
%Config:
archname=x86_64-linux
installsitelib=/opt/perl5/perls/perl-5.28.0/lib/site_perl/5.28.0
installsitebin=/opt/perl5/perls/perl-5.28.0/bin
installman1dir=/opt/perl5/perls/perl-5.28.0/man/man1
installman3dir=/opt/perl5/perls/perl-5.28.0/man/man3
sitearchexp=/opt/perl5/perls/perl-5.28.0/lib/site_perl/5.28.0/x86_64-linux
sitelibexp=/opt/perl5/perls/perl-5.28.0/lib/site_perl/5.28.0
archlibexp=/opt/perl5/perls/perl-5.28.0/lib/5.28.0/x86_64-linux
privlibexp=/opt/perl5/perls/perl-5.28.0/lib/5.28.0
%ENV:
PERLBREW_HOME=/root/.perlbrew
PERLBREW_MANPATH=/opt/perl5/perls/perl-5.28.0/man
PERLBREW_PATH=/opt/perl5/bin:/opt/perl5/perls/perl-5.28.0/bin
PERLBREW_PERL=perl-5.28.0
PERLBREW_ROOT=/opt/perl5
PERLBREW_SHELLRC_VERSION=0.84
PERLBREW_VERSION=0.84
@INC:
FatPacked::36150040=HASH(0x2279b18)
/opt/perl5/perls/perl-5.28.0/lib/site_perl/5.28.0/x86_64-linux
/opt/perl5/perls/perl-5.28.0/lib/site_perl/5.28.0
/opt/perl5/perls/perl-5.28.0/lib/5.28.0/x86_64-linux
/opt/perl5/perls/perl-5.28.0/lib/5.28.0 # cpanm DBD::mysql -v
cpanm (App::cpanminus) 1.7044 on perl 5.028000 built for x86_64-linux
Work directory is /root/.cpanm/work/1536605005.10429
You have make /usr/bin/make
You have LWP 6.34
You have /bin/tar: tar (GNU tar) 1.23
Copyright (C) 2010 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://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
Searching DBD::mysql () on cpanmetadb ...
--> Working on DBD::mysql
Fetching http://www.cpan.org/authors/id/C/CA/CAPTTOFU/DBD-mysql-4.047.tar.gz ... OK
Unpacking DBD-mysql-4.047.tar.gz
DBD-mysql-4.047/
DBD-mysql-4.047/Changes
DBD-mysql-4.047/constants.h
DBD-mysql-4.047/dbdimp.c
DBD-mysql-4.047/dbdimp.h
DBD-mysql-4.047/lib/
DBD-mysql-4.047/lib/Bundle/
DBD-mysql-4.047/lib/Bundle/DBD/
DBD-mysql-4.047/lib/Bundle/DBD/mysql.pm
DBD-mysql-4.047/lib/DBD/
DBD-mysql-4.047/lib/DBD/mysql/
DBD-mysql-4.047/lib/DBD/mysql/GetInfo.pm
DBD-mysql-4.047/lib/DBD/mysql/INSTALL.pod
DBD-mysql-4.047/lib/DBD/mysql.pm
DBD-mysql-4.047/LICENSE
DBD-mysql-4.047/Makefile.PL
DBD-mysql-4.047/Makefile.PL.embedded
DBD-mysql-4.047/MANIFEST
DBD-mysql-4.047/MANIFEST.SKIP
DBD-mysql-4.047/META.json
DBD-mysql-4.047/META.yml
DBD-mysql-4.047/myld
DBD-mysql-4.047/mysql.xs
DBD-mysql-4.047/README.md
DBD-mysql-4.047/socket.c
DBD-mysql-4.047/t/
DBD-mysql-4.047/t/00base.t
DBD-mysql-4.047/t/05dbcreate.t
DBD-mysql-4.047/t/10connect.t
DBD-mysql-4.047/t/15reconnect.t
DBD-mysql-4.047/t/16dbi-get_info.t
DBD-mysql-4.047/t/20createdrop.t
DBD-mysql-4.047/t/25lockunlock.t
DBD-mysql-4.047/t/29warnings.t
DBD-mysql-4.047/t/30insertfetch.t
DBD-mysql-4.047/t/31insertid.t
DBD-mysql-4.047/t/32insert_error.t
DBD-mysql-4.047/t/35limit.t
DBD-mysql-4.047/t/35prepare.t
DBD-mysql-4.047/t/40bindparam.t
DBD-mysql-4.047/t/40bindparam2.t
DBD-mysql-4.047/t/40bit.t
DBD-mysql-4.047/t/40blobs.t
DBD-mysql-4.047/t/40catalog.t
DBD-mysql-4.047/t/40keyinfo.t
DBD-mysql-4.047/t/40listfields.t
DBD-mysql-4.047/t/40nulls.t
DBD-mysql-4.047/t/40nulls_prepare.t
DBD-mysql-4.047/t/40numrows.t
DBD-mysql-4.047/t/40server_prepare.t
DBD-mysql-4.047/t/40server_prepare_crash.t
DBD-mysql-4.047/t/40server_prepare_error.t
DBD-mysql-4.047/t/40types.t
DBD-mysql-4.047/t/41bindparam.t
DBD-mysql-4.047/t/41blobs_prepare.t
DBD-mysql-4.047/t/41int_min_max.t
DBD-mysql-4.047/t/42bindparam.t
DBD-mysql-4.047/t/43count_params.t
DBD-mysql-4.047/t/50chopblanks.t
DBD-mysql-4.047/t/50commit.t
DBD-mysql-4.047/t/51bind_type_guessing.t
DBD-mysql-4.047/t/52comment.t
DBD-mysql-4.047/t/53comment.t
DBD-mysql-4.047/t/55utf8.t
DBD-mysql-4.047/t/55utf8mb4.t
DBD-mysql-4.047/t/56connattr.t
DBD-mysql-4.047/t/60leaks.t
DBD-mysql-4.047/t/65segfault.t
DBD-mysql-4.047/t/65types.t
DBD-mysql-4.047/t/70takeimp.t
DBD-mysql-4.047/t/71impdata.t
DBD-mysql-4.047/t/75supported_sql.t
DBD-mysql-4.047/t/76multi_statement.t
DBD-mysql-4.047/t/80procs.t
DBD-mysql-4.047/t/81procs.t
DBD-mysql-4.047/t/85init_command.t
DBD-mysql-4.047/t/86_bug_36972.t
DBD-mysql-4.047/t/87async.t
DBD-mysql-4.047/t/88async-multi-stmts.t
DBD-mysql-4.047/t/89async-method-check.t
DBD-mysql-4.047/t/91errcheck.t
DBD-mysql-4.047/t/92ssl_backronym_vulnerability.t
DBD-mysql-4.047/t/92ssl_optional.t
DBD-mysql-4.047/t/92ssl_riddle_vulnerability.t
DBD-mysql-4.047/t/99_bug_server_prepare_blob_null.t
DBD-mysql-4.047/t/lib.pl
DBD-mysql-4.047/t/manifest.t
DBD-mysql-4.047/t/mysql.dbtest
DBD-mysql-4.047/t/pod.t
DBD-mysql-4.047/t/rt110983-valid-mysqlfd.t
DBD-mysql-4.047/t/rt118977-zerofill.t
DBD-mysql-4.047/t/rt25389-bin-case.t
DBD-mysql-4.047/t/rt50304-column_info_parentheses.t
DBD-mysql-4.047/t/rt61849-bind-param-buffer-overflow.t
DBD-mysql-4.047/t/rt75353-innodb-lock-timeout.t
DBD-mysql-4.047/t/rt83494-quotes-comments.t
DBD-mysql-4.047/t/rt85919-fetch-lost-connection.t
DBD-mysql-4.047/t/rt86153-reconnect-fail-memory.t
DBD-mysql-4.047/t/rt88006-bit-prepare.t
DBD-mysql-4.047/t/rt91715.t
DBD-mysql-4.047/t/version.t
Entering DBD-mysql-4.047
Checking configure dependencies from META.json
Running Makefile.PL
Configuring DBD-mysql-4.047 ... Can't locate Devel/CheckLib.pm in @INC (you may need to install the Devel::CheckLib module) (@INC contains: /opt/perl5/perls/perl-5.28.0/lib/site_perl/5.28.0/x86_64-linux /opt/perl5/perls/perl-5.28.0/lib/site_perl/5.28.0 /opt/perl5/perls/perl-5.28.0/lib/5.28.0/x86_64-linux /opt/perl5/perls/perl-5.28.0/lib/5.28.0 .) at Makefile.PL line 12.
BEGIN failed--compilation aborted at Makefile.PL line 12.
N/A
! Configure failed for DBD::mysql. See /root/.cpanm/work/1536605005.10429/build.log for details. |
Same issue. all my dependent builds are failing due to this. |
I had the same issue with cpan in a fresh perl 5.28.0 but Devel::CheckLib is listed as configure requires in the module's |
I'm getting the same results. You can even see in the above output "Checking configure dependencies from META.json" which is where the prereq should be discovered. |
I found the issue: the generated META.json is invalid due to characters in the x_contributors array. Please try generating the distribution with an up to date version of JSON::PP installed. |
Would it be proper to submit a pull request for this @Grinnz ? |
No, this cannot be fixed in code. |
Please also use an up to date ExtUtils::MakeMaker when generating the distribution, that could also be the issue. |
With the modules I mentioned up to date (possibly also CPAN::Meta), the generated META.json should be correct, as it worked for my distribution here: https://metacpan.org/source/DBOOK/Net-Amazon-Signature-V4-0.19/META.json |
Based on this diff, I think that out of date ExtUtils::MakeMaker when releasing is the issue (the META.json from 4.046 is fine). |
The install of 4.047 fails due to an invalid META.json file. See perl5-dbi/DBD-mysql#263
This addresses perl5-dbi/DBD-mysql#263
So the problem is indeed that
I actually wanted to do a 4.048 release on CPAN with a fixed @CaptTofu can you please update your local ExtUtils::MakeMaker, try and create a dist and check if the JSON is valid, make a new release and push it to CPAN and Github? |
…wait for that to be fixed
FWIW I get this on a clean install to ubuntu 18.04 with Perl version 5.26.2 |
We get this error on a clean deployment of CentOS 7.4. |
…wait for that to be fixed
It looks like 4.047 has been pushed to GitHub #261 yesterday, so hopefully it is possible for a new release to be made soon to fix this issue. |
Upstream changes: 2018-09-15 Daniël van Eeden, Patrick Galbraith, Michiel Beijen, DBI/DBD community (4.048) * Fix corrupted META.json so cpan installations work as expected. perl5-dbi/DBD-mysql#263
I see that this was added in the previous release, and that the module longer installs correctly:
The text was updated successfully, but these errors were encountered: