khandielas has asked for the wisdom of the Perl Monks concerning the following question:

Hi, Monks, I try to search and do not find any similar question online. It seems only I hit this problem.


I try to install Mail::GPG on a fresh Ubuntu 16.04, but it always timeout. (by cpan, by cpanm, by download and run make utilities ...).


Here is the log:

cpanm (App::cpanminus) 1.7043 on perl 5.022001 built for x86_64-linux- +gnu-thread-multi Work directory is /home/joe/.cpanm/work/1518276126.2703 You have make /usr/bin/make You have LWP 6.15 You have /bin/tar: tar (GNU tar) 1.28 Copyright (C) 2014 Free Software Foundation, Inc. License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gp +l.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 Mail::GPG () on cpanmetadb ... --> Working on Mail::GPG Fetching http://www.cpan.org/authors/id/J/JR/JRED/Mail-GPG-1.0.11.tar. +gz -> OK Unpacking Mail-GPG-1.0.11.tar.gz Entering Mail-GPG-1.0.11 Checking configure dependencies from META.json Checking if you have ExtUtils::MakeMaker 6.58 ... Yes (7.04_01) Configuring Mail-GPG-v1.0.11 Running Makefile.PL * Checking for patched MIME-tools package... Not Ok! Please read the README file and apply the required MIME-tools patch before installing Mail::GPG. You can use Mail::GPG without this patch, but Mail::GPG then can't verify all MIME signed messages. * Checking for gpg program... Ok Checking if your kit is complete... Looks good Warning: prerequisite AnyEvent 0 not found. Warning: prerequisite GnuPG::Interface 0 not found. Warning: prerequisite MIME::Entity 5.419 not found. Warning: prerequisite MIME::Parser 5.419 not found. Generating a Unix-style Makefile Writing Makefile for Mail::GPG Writing MYMETA.yml and MYMETA.json -> OK Checking dependencies from MYMETA.json ... ... ... ... ... ... ... Installing /usr/local/man/man3/GnuPG::PublicKey.3pm Installing /usr/local/man/man3/GnuPG::Options.3pm Appending installation info to /usr/local/lib/x86_64-linux-gnu/perl/5. +22.1/perllocal.pod -> OK Successfully installed GnuPG-Interface-0.52 Installing /usr/local/share/perl/5.22.1/x86_64-linux-gnu-thread-multi/ +.meta/GnuPG-Interface-0.52/MYMETA.json Installing /usr/local/share/perl/5.22.1/x86_64-linux-gnu-thread-multi/ +.meta/GnuPG-Interface-0.52/install.json Searching MIME::Entity (5.419) on cpanmetadb ... Already tried MIME-tools-5.509. Skipping. Building and testing Mail-GPG-v1.0.11 cp lib/Mail/GPG/Result.pm blib/lib/Mail/GPG/Result.pm cp lib/Mail/GPG/Test.pm blib/lib/Mail/GPG/Test.pm cp lib/Mail/GPG.pm blib/lib/Mail/GPG.pm cp bin/mgpg-test blib/script/mgpg-test "/usr/bin/perl" -MExtUtils::MY -e 'MY->fixin(shift)' -- blib/script/mg +pg-test Manifying 2 pod documents PERL_DL_NONLAZY=1 "/usr/bin/perl" "-MExtUtils::Command::MM" "-MTest::H +arness" "-e" "undef *Test::Harness::Switches; test_harness(0, 'blib/l +ib', 'blib/arch')" t/*.t t/01.base.t ....... ok

I only post the top and bottom of the log. I can post the full log if it helps.

Replies are listed 'Best First'.
Re: install Mail::GPG timeout on Ubuntu 16.04
by 1nickt (Canon) on Feb 10, 2018 at 19:30 UTC

    Hi, I set up a fresh Perl to download and test the module for you. Like you, I found that the installation became stuck at the tests.

    Not surprising once you look at the CPAN Testers report which shows 100% failure on Linux with Perl 5.26.1 (mine) and 5.22.1 (yours).


    The way forward always starts with a minimal test.

      1nickt, thank you so much.

      I did not check CPAN testing results at all. The weird thing is that this test just got stuck there without any hints/warnings or whatever.

Re: install Mail::GPG timeout on Ubuntu 16.04
by marto (Cardinal) on Feb 10, 2018 at 17:19 UTC

    Realistically you're going to have to either post the parts which show failure or where he timeout occurs. I'd you're using the system perl just use apt to install the module if available.

Re: install Mail::GPG timeout on Ubuntu 16.04
by poj (Abbot) on Feb 11, 2018 at 14:41 UTC

    Try installing EV and then retry installing Mail::GPG

    poj

      I can confirm that this works on Ubuntu 16.04 with Perl 5.26.1 with all tests passing in 6 seconds versus timing out after 30 minutes !!

      All-in with schmorp-ware :-o


      The way forward always starts with a minimal test.
Re: install Mail::GPG timeout on Ubuntu 16.04
by 1nickt (Canon) on Feb 12, 2018 at 15:46 UTC

    Hi again, maybe Perlmonks has power? Today the maintainer released a new version 1.0.12 of Mail::GPG dropping AnyEvent completely, CHANGES file referencing the failed CPANTesters reports, if not this thread :-)

    (I did let him know of our findings about needing to require EV as well as AnyEvent due to slow-running tests.)


    The way forward always starts with a minimal test.