Can't install GnuPG::Interface with CPAN - tests fail

This appears to be the last perl module I am trying to install using CPAN so that testdeps no longer returns any failure, but after doing extensive searching around I can’t figure out why Gnu::PGInterface wont pass these tests. Is there somewhere I can look to get more information?

This doesn’t appear to be a core dependency for RT, could I just go ahead and install RT now and not worry about this? what functionality will I lose if I don’t bother with this?

Output below when running cpan GnuPG::Interface

Loading internal null logger. Install Log::Log4perl for logging messages
CPAN: Storable loaded ok (v2.62)
Reading ‘/home/administrator/.cpan/Metadata’
Database was generated on Wed, 17 Oct 2018 02:17:03 GMT
Running install for module ‘GnuPG::Interface’
CPAN: Digest::SHA loaded ok (v5.96)
CPAN: Compress::Zlib loaded ok (v2.074)
Checksum for /home/administrator/.cpan/sources/authors/id/A/AL/ALEXMV/GnuPG-Interface-0.52.tar.gz ok
CPAN: YAML loaded ok (v1.26)
CPAN: CPAN::Meta::Requirements loaded ok (v2.140)
CPAN: Parse::CPAN::Meta loaded ok (v2.150010)
CPAN: CPAN::Meta loaded ok (v2.150010)
CPAN: Module::CoreList loaded ok (v5.20170922_26)
Configuring A/AL/ALEXMV/GnuPG-Interface-0.52.tar.gz with Makefile.PL
which gpg … /usr/bin/gpg
gpg: WARNING: unsafe ownership on homedir ‘/home/administrator/.gnupg’
Checking if your kit is complete…
Looks good
Generating a Unix-style Makefile
Writing Makefile for GnuPG::Interface
Writing MYMETA.yml and MYMETA.json
ALEXMV/GnuPG-Interface-0.52.tar.gz
/usr/bin/perl Makefile.PL INSTALLDIRS=site – OK
Running make for A/AL/ALEXMV/GnuPG-Interface-0.52.tar.gz
cp lib/GnuPG/SecretKey.pm blib/lib/GnuPG/SecretKey.pm
cp lib/GnuPG/Handles.pm blib/lib/GnuPG/Handles.pm
cp lib/GnuPG/UserAttribute.pm blib/lib/GnuPG/UserAttribute.pm
cp lib/GnuPG/SubKey.pm blib/lib/GnuPG/SubKey.pm
cp lib/GnuPG/UserId.pm blib/lib/GnuPG/UserId.pm
cp lib/GnuPG/PrimaryKey.pm blib/lib/GnuPG/PrimaryKey.pm
cp lib/GnuPG/Key.pm blib/lib/GnuPG/Key.pm
cp lib/GnuPG/Interface.pm blib/lib/GnuPG/Interface.pm
cp lib/GnuPG/Options.pm blib/lib/GnuPG/Options.pm
cp lib/GnuPG/Revoker.pm blib/lib/GnuPG/Revoker.pm
cp lib/GnuPG/PublicKey.pm blib/lib/GnuPG/PublicKey.pm
cp lib/GnuPG/Signature.pm blib/lib/GnuPG/Signature.pm
cp lib/GnuPG/Fingerprint.pm blib/lib/GnuPG/Fingerprint.pm
cp lib/GnuPG/HashInit.pm blib/lib/GnuPG/HashInit.pm
Manifying 13 pod documents
ALEXMV/GnuPG-Interface-0.52.tar.gz
/usr/bin/make – OK
Running make test
PERL_DL_NONLAZY=1 “/usr/bin/perl” “-MExtUtils::Command::MM” “-MTest::Harness” “-e” "undef Test::Harness::Switches; test_harness(0, ‘inc’, ‘blib/lib’, ‘blib/arch’)" t/.t
t/clearsign.t … Failed 2/2 subtests
t/decrypt.t … Failed 4/4 subtests
t/detach_sign.t … Failed 2/2 subtests
t/encrypt.t … 1/4 gpg: WARNING: unsafe ownership on homedir ‘/home/administrator/.cpan/build/GnuPG-Interface-0.52-18/test’
t/encrypt.t … ok
t/encrypt_symmetrically.t … ok
t/export_keys.t … ok
t/Fingerprint.t … ok
t/get_public_keys.t … gpg: WARNING: unsafe ownership on homedir ‘/home/administrator/.cpan/build/GnuPG-Interface-0.52-18/test’
t/get_public_keys.t … Failed 1/3 subtests
t/get_secret_keys.t … gpg: WARNING: unsafe ownership on homedir ‘/home/administrator/.cpan/build/GnuPG-Interface-0.52-18/test’
t/get_secret_keys.t … Failed 2/2 subtests
t/import_keys.t … ok
t/Interface.t … ok
t/list_public_keys.t … ok
t/list_secret_keys.t … Failed 1/4 subtests
t/list_sigs.t … ok
t/passphrase_handling.t … 2/3 gpg: WARNING: unsafe ownership on homedir ‘/home/administrator/.cpan/build/GnuPG-Interface-0.52-18/test’
gpg: using “0xF950DA9C” as default secret key for signing
gpg: signing failed: Inappropriate ioctl for device
gpg: signing failed: Inappropriate ioctl for device
t/passphrase_handling.t … Failed 3/3 subtests
t/sign.t … Failed 2/2 subtests
t/sign_and_encrypt.t … Failed 2/2 subtests
t/UserId.t … ok
t/verify.t … ok
t/wrap_call.t … ok

Test Summary Report

t/clearsign.t (Wstat: 0 Tests: 2 Failed: 2)
Failed tests: 1-2
t/decrypt.t (Wstat: 0 Tests: 4 Failed: 4)
Failed tests: 1-4
t/detach_sign.t (Wstat: 0 Tests: 2 Failed: 2)
Failed tests: 1-2
t/get_public_keys.t (Wstat: 0 Tests: 3 Failed: 1)
Failed test: 3
t/get_secret_keys.t (Wstat: 0 Tests: 2 Failed: 2)
Failed tests: 1-2
t/list_secret_keys.t (Wstat: 0 Tests: 4 Failed: 1)
Failed test: 2
t/passphrase_handling.t (Wstat: 0 Tests: 3 Failed: 3)
Failed tests: 1-3
t/sign.t (Wstat: 0 Tests: 2 Failed: 2)
Failed tests: 1-2
t/sign_and_encrypt.t (Wstat: 0 Tests: 2 Failed: 2)
Failed tests: 1-2
Files=20, Tests=52, 17 wallclock secs ( 0.08 usr 0.02 sys + 5.15 cusr 0.63 csys = 5.88 CPU)
Result: FAIL
Failed 9/20 test programs. 19/52 subtests failed.
Makefile:805: recipe for target ‘test_dynamic’ failed
make: *** [test_dynamic] Error 255
ALEXMV/GnuPG-Interface-0.52.tar.gz
/usr/bin/make test – NOT OK
//hint// to see the cpan-testers results for installing this module, try:
reports ALEXMV/GnuPG-Interface-0.52.tar.gz

I see other folks have had issues over the years with installing GNUPg::Interface. Have you tried a pre-packaged binary if your platform has one? For example Redhat6/CentOS6 have it in perl-GnuPG-Interface and on my Debian 8 workstation its in libgnupg-interface-perl.

Also what version of GnuPG are your using this with? I’ve read that there were difficulties with some of the Perl bindings when folk moved the underlying binaries from v1.x to v2.

2 Likes

Thank you!

Installing libgnupg-interface-perl and it’s dependencies solved the issue. I’m running ubuntu 18.04.

testdeps now shows GnuPG::Interface as ‘found’

Hi James/ GreenJimll
I am also facing the same RT install issue on Red Hat Enterprise Linux Server release 6.10 host.
Please let me know the steps to install libgnupg-interface-perl and it’s dependencies to solve this issue.

SOME DEPENDENCIES WERE MISSING.
GPG missing dependencies:
GnuPG::Interface …MISSING

Perl library path for /usr/local/perl-5.24.2/bin/perl:
/usr/local/perl-5.24.2/lib/5.24.2/x86_64-linux
/usr/local/perl-5.24.2/lib/5.24.2
/usr/local/perl-5.24.2/lib
/usr/local/perl-5.24.2/lib/site_perl/5.24.2/x86_64-linux
/usr/local/perl-5.24.2/lib/site_perl/5.24.2
/usr/local/perl-5.24.2/lib/5.24.2/x86_64-linux
/usr/local/perl-5.24.2/lib/5.24.2
.
make: *** [fixdeps] Error 1

Failed to execute make fixdeps

nolock_cpan> install -f GnuPG::Interface
Reading ‘/root/.cpan/sources/authors/01mailrc.txt.gz’
…DONE
Reading ‘/root/.cpan/sources/modules/02packages.details.txt.gz’
Database was generated on Wed, 23 Dec 2020 21:29:03 GMT

New CPAN.pm version (v2.28) available.
[Currently running version is v2.1101]
You might want to try
install CPAN
reload cpan
to both upgrade CPAN.pm and run the new version without leaving
the current session.

…DONE
Reading ‘/root/.cpan/sources/modules/03modlist.data.gz’
DONE
Warning: Cannot install -f, don’t know what it is.
Try the command

i /-f/

to find objects with matching identifiers.
Running install for module ‘GnuPG::Interface’
Checksum for /root/.cpan/sources/authors/id/J/JE/JESSE/GnuPG-Interface-1.00.tar.gz ok
Configuring J/JE/JESSE/GnuPG-Interface-1.00.tar.gz with Makefile.PL
which gpg … /usr/bin/gpg
Checking if your kit is complete…
Looks good
Generating a Unix-style Makefile
Writing Makefile for GnuPG::Interface
Writing MYMETA.yml and MYMETA.json
JESSE/GnuPG-Interface-1.00.tar.gz
/usr/local/perl-5.24.2/bin/perl5.24.2 Makefile.PL – OK
Running make for J/JE/JESSE/GnuPG-Interface-1.00.tar.gz
cp lib/GnuPG/Revoker.pm blib/lib/GnuPG/Revoker.pm
cp lib/GnuPG/Options.pm blib/lib/GnuPG/Options.pm
cp lib/GnuPG/UserAttribute.pm blib/lib/GnuPG/UserAttribute.pm
cp lib/GnuPG/PrimaryKey.pm blib/lib/GnuPG/PrimaryKey.pm
cp lib/GnuPG/Handles.pm blib/lib/GnuPG/Handles.pm
cp lib/GnuPG/Fingerprint.pm blib/lib/GnuPG/Fingerprint.pm
cp lib/GnuPG/Interface.pm blib/lib/GnuPG/Interface.pm
cp lib/GnuPG/Signature.pm blib/lib/GnuPG/Signature.pm
cp lib/GnuPG/SecretKey.pm blib/lib/GnuPG/SecretKey.pm
cp lib/GnuPG/PublicKey.pm blib/lib/GnuPG/PublicKey.pm
cp lib/GnuPG/HashInit.pm blib/lib/GnuPG/HashInit.pm
cp lib/GnuPG/SubKey.pm blib/lib/GnuPG/SubKey.pm
cp lib/GnuPG/UserId.pm blib/lib/GnuPG/UserId.pm
cp lib/GnuPG/Key.pm blib/lib/GnuPG/Key.pm
Manifying 13 pod documents
JESSE/GnuPG-Interface-1.00.tar.gz
/usr/bin/make – OK
Running make test
PERL_DL_NONLAZY=1 “/usr/local/perl-5.24.2/bin/perl5.24.2” “-MExtUtils::Command::MM” “-MTest::Harness” “-e” "undef Test::Harness::Switches; test_harness(0, ‘inc’, ‘blib/lib’, ‘blib/arch’)" t/.t
t/000_setup.t … GnuPG Version 1.4 or 2.2+ required at t/MyTestSpecific.pm line 56.
Compilation failed in require at t/000_setup.t line 8.
BEGIN failed–compilation aborted at t/000_setup.t line 8.
t/000_setup.t … Dubious, test returned 29 (wstat 7424, 0x1d00)
Failed 1/1 subtests
t/clearsign.t … GnuPG Version 1.4 or 2.2+ required at t/MyTestSpecific.pm line 56.
Compilation failed in require at t/clearsign.t line 11.
BEGIN failed–compilation aborted at t/clearsign.t line 11.
t/clearsign.t … Dubious, test returned 29 (wstat 7424, 0x1d00)
Failed 2/2 subtests
t/decrypt.t … GnuPG Version 1.4 or 2.2+ required at t/MyTestSpecific.pm line 56.
Compilation failed in require at t/decrypt.t line 12.
BEGIN failed–compilation aborted at t/decrypt.t line 12.
t/decrypt.t … Dubious, test returned 29 (wstat 7424, 0x1d00)
Failed 6/6 subtests
t/detach_sign.t … GnuPG Version 1.4 or 2.2+ required at t/MyTestSpecific.pm line 56.
Compilation failed in require at t/detach_sign.t line 11.
BEGIN failed–compilation aborted at t/detach_sign.t line 11.
t/detach_sign.t … Dubious, test returned 29 (wstat 7424, 0x1d00)
Failed 2/2 subtests
t/encrypt.t … GnuPG Version 1.4 or 2.2+ required at t/MyTestSpecific.pm line 56.
Compilation failed in require at t/encrypt.t line 11.
BEGIN failed–compilation aborted at t/encrypt.t line 11.
t/encrypt.t … Dubious, test returned 29 (wstat 7424, 0x1d00)
Failed 4/4 subtests
t/encrypt_symmetrically.t … GnuPG Version 1.4 or 2.2+ required at t/MyTestSpecific.pm line 56.
Compilation failed in require at t/encrypt_symmetrically.t line 11.
BEGIN failed–compilation aborted at t/encrypt_symmetrically.t line 11.
t/encrypt_symmetrically.t … Dubious, test returned 29 (wstat 7424, 0x1d00)
Failed 2/2 subtests
t/export_keys.t … GnuPG Version 1.4 or 2.2+ required at t/MyTestSpecific.pm line 56.
Compilation failed in require at t/export_keys.t line 11.
BEGIN failed–compilation aborted at t/export_keys.t line 11.
t/export_keys.t … Dubious, test returned 29 (wstat 7424, 0x1d00)
Failed 2/2 subtests
t/Fingerprint.t … ok
t/get_public_keys.t … GnuPG Version 1.4 or 2.2+ required at t/MyTestSpecific.pm line 56.
Compilation failed in require at t/get_public_keys.t line 11.
BEGIN failed–compilation aborted at t/get_public_keys.t line 11.
t/get_public_keys.t … Dubious, test returned 29 (wstat 7424, 0x1d00)
Failed 3/3 subtests
t/get_secret_keys.t … GnuPG Version 1.4 or 2.2+ required at t/MyTestSpecific.pm line 56.
Compilation failed in require at t/get_secret_keys.t line 11.
BEGIN failed–compilation aborted at t/get_secret_keys.t line 11.
t/get_secret_keys.t … Dubious, test returned 29 (wstat 7424, 0x1d00)
Failed 2/2 subtests
t/import_keys.t … GnuPG Version 1.4 or 2.2+ required at t/MyTestSpecific.pm line 56.
Compilation failed in require at t/import_keys.t line 11.
BEGIN failed–compilation aborted at t/import_keys.t line 11.
t/import_keys.t … Dubious, test returned 29 (wstat 7424, 0x1d00)
Failed 2/2 subtests
t/Interface.t … GnuPG Version 1.4 or 2.2+ required at t/Interface.t line 16.
t/Interface.t … Dubious, test returned 255 (wstat 65280, 0xff00)
Failed 2/2 subtests
t/list_public_keys.t … GnuPG Version 1.4 or 2.2+ required at t/MyTestSpecific.pm line 56.
Compilation failed in require at t/list_public_keys.t line 12.
BEGIN failed–compilation aborted at t/list_public_keys.t line 12.
t/list_public_keys.t … Dubious, test returned 29 (wstat 7424, 0x1d00)
Failed 3/3 subtests
t/list_secret_keys.t … GnuPG Version 1.4 or 2.2+ required at t/MyTestSpecific.pm line 56.
Compilation failed in require at t/list_secret_keys.t line 11.
BEGIN failed–compilation aborted at t/list_secret_keys.t line 11.
t/list_secret_keys.t … Dubious, test returned 29 (wstat 7424, 0x1d00)
Failed 4/4 subtests
t/list_sigs.t … GnuPG Version 1.4 or 2.2+ required at t/MyTestSpecific.pm line 56.
Compilation failed in require at t/list_sigs.t line 10.
BEGIN failed–compilation aborted at t/list_sigs.t line 10.
t/list_sigs.t … Dubious, test returned 29 (wstat 7424, 0x1d00)
Failed 3/3 subtests
t/passphrase_handling.t … GnuPG Version 1.4 or 2.2+ required at t/MyTestSpecific.pm line 56.
Compilation failed in require at t/passphrase_handling.t line 13.
BEGIN failed–compilation aborted at t/passphrase_handling.t line 13.
t/passphrase_handling.t … Dubious, test returned 29 (wstat 7424, 0x1d00)
Failed 3/3 subtests
t/sign.t … GnuPG Version 1.4 or 2.2+ required at t/MyTestSpecific.pm line 56.
Compilation failed in require at t/sign.t line 11.
BEGIN failed–compilation aborted at t/sign.t line 11.
t/sign.t … Dubious, test returned 29 (wstat 7424, 0x1d00)
Failed 2/2 subtests
t/sign_and_encrypt.t … GnuPG Version 1.4 or 2.2+ required at t/MyTestSpecific.pm line 56.
Compilation failed in require at t/sign_and_encrypt.t line 11.
BEGIN failed–compilation aborted at t/sign_and_encrypt.t line 11.
t/sign_and_encrypt.t … Dubious, test returned 29 (wstat 7424, 0x1d00)
Failed 2/2 subtests
t/UserId.t … ok
t/verify.t … GnuPG Version 1.4 or 2.2+ required at t/MyTestSpecific.pm line 56.
Compilation failed in require at t/verify.t line 11.
BEGIN failed–compilation aborted at t/verify.t line 11.
t/verify.t … Dubious, test returned 29 (wstat 7424, 0x1d00)
Failed 2/2 subtests
t/wrap_call.t … GnuPG Version 1.4 or 2.2+ required at t/MyTestSpecific.pm line 56.
Compilation failed in require at t/wrap_call.t line 10.
BEGIN failed–compilation aborted at t/wrap_call.t line 10.
t/wrap_call.t … Dubious, test returned 29 (wstat 7424, 0x1d00)
Failed 4/4 subtests
t/zzz_cleanup.t … GnuPG Version 1.4 or 2.2+ required at t/MyTestSpecific.pm line 56.
Compilation failed in require at t/zzz_cleanup.t line 8.
BEGIN failed–compilation aborted at t/zzz_cleanup.t line 8.
t/zzz_cleanup.t … Dubious, test returned 29 (wstat 7424, 0x1d00)
Failed 1/1 subtests

Test Summary Report

t/000_setup.t (Wstat: 7424 Tests: 0 Failed: 0)
Non-zero exit status: 29
Parse errors: Bad plan. You planned 1 tests but ran 0.
t/clearsign.t (Wstat: 7424 Tests: 0 Failed: 0)
Non-zero exit status: 29
Parse errors: Bad plan. You planned 2 tests but ran 0.
t/decrypt.t (Wstat: 7424 Tests: 0 Failed: 0)
Non-zero exit status: 29
Parse errors: Bad plan. You planned 6 tests but ran 0.
t/detach_sign.t (Wstat: 7424 Tests: 0 Failed: 0)
Non-zero exit status: 29
Parse errors: Bad plan. You planned 2 tests but ran 0.
t/encrypt.t (Wstat: 7424 Tests: 0 Failed: 0)
Non-zero exit status: 29
Parse errors: Bad plan. You planned 4 tests but ran 0.
t/encrypt_symmetrically.t (Wstat: 7424 Tests: 0 Failed: 0)
Non-zero exit status: 29
Parse errors: Bad plan. You planned 2 tests but ran 0.
t/export_keys.t (Wstat: 7424 Tests: 0 Failed: 0)
Non-zero exit status: 29
Parse errors: Bad plan. You planned 2 tests but ran 0.
t/get_public_keys.t (Wstat: 7424 Tests: 0 Failed: 0)
Non-zero exit status: 29
Parse errors: Bad plan. You planned 3 tests but ran 0.
t/get_secret_keys.t (Wstat: 7424 Tests: 0 Failed: 0)
Non-zero exit status: 29
Parse errors: Bad plan. You planned 2 tests but ran 0.
t/import_keys.t (Wstat: 7424 Tests: 0 Failed: 0)
Non-zero exit status: 29
Parse errors: Bad plan. You planned 2 tests but ran 0.
t/Interface.t (Wstat: 65280 Tests: 0 Failed: 0)
Non-zero exit status: 255
Parse errors: Bad plan. You planned 2 tests but ran 0.
t/list_public_keys.t (Wstat: 7424 Tests: 0 Failed: 0)
Non-zero exit status: 29
Parse errors: Bad plan. You planned 3 tests but ran 0.
t/list_secret_keys.t (Wstat: 7424 Tests: 0 Failed: 0)
Non-zero exit status: 29
Parse errors: Bad plan. You planned 4 tests but ran 0.
t/list_sigs.t (Wstat: 7424 Tests: 0 Failed: 0)
Non-zero exit status: 29
Parse errors: Bad plan. You planned 3 tests but ran 0.
t/passphrase_handling.t (Wstat: 7424 Tests: 0 Failed: 0)
Non-zero exit status: 29
Parse errors: Bad plan. You planned 3 tests but ran 0.
t/sign.t (Wstat: 7424 Tests: 0 Failed: 0)
Non-zero exit status: 29
Parse errors: Bad plan. You planned 2 tests but ran 0.
t/sign_and_encrypt.t (Wstat: 7424 Tests: 0 Failed: 0)
Non-zero exit status: 29
Parse errors: Bad plan. You planned 2 tests but ran 0.
t/verify.t (Wstat: 7424 Tests: 0 Failed: 0)
Non-zero exit status: 29
Parse errors: Bad plan. You planned 2 tests but ran 0.
t/wrap_call.t (Wstat: 7424 Tests: 0 Failed: 0)
Non-zero exit status: 29
Parse errors: Bad plan. You planned 4 tests but ran 0.
t/zzz_cleanup.t (Wstat: 7424 Tests: 0 Failed: 0)
Non-zero exit status: 29
Parse errors: Bad plan. You planned 1 tests but ran 0.
Files=22, Tests=4, 5 wallclock secs ( 0.09 usr 0.03 sys + 4.33 cusr 0.66 csys = 5.11 CPU)
Result: FAIL
Failed 20/22 test programs. 0/4 subtests failed.
make: *** [test_dynamic] Error 29
JESSE/GnuPG-Interface-1.00.tar.gz
/usr/bin/make test – NOT OK
//hint// to see the cpan-testers results for installing this module, try:
reports JESSE/GnuPG-Interface-1.00.tar.gz
Failed during this command:
JESSE/GnuPG-Interface-1.00.tar.gz : make_test NO

===

Try using yum to install the OS package perl-GnuPG-Interface. Although I should point out that the RHEL/CentOS 6.x operating systems are end of life, so if this is a new server you might want to look at a newer OS release before you start.

Thanks a lot for your help GreenJimll!

We will try to install rt-4.2.14.tar.gz in RHEL 7.6 (Maipo). Please let me know what is the perl version needed to install the same .

We are hitting the below error while installing perl-5.24.2.tar.gz in RHEL 7.6 (Maipo) host.
Failed 1 test out of 2248, 99.96% okay.
…/cpan/Time-Local/t/Local.t

Since not all tests were successful, you may want to run some of

them individually and examine any diagnostic messages they produce.

See the INSTALL document’s section on “make test”.

You have a good chance to get more information by running

./perl harness

in the ‘t’ directory since most (>=80%) of the tests succeeded.

You may have to set your dynamic library search path,

LD_LIBRARY_PATH, to point to the build directory:

setenv LD_LIBRARY_PATH pwd; cd t; ./perl harness

LD_LIBRARY_PATH=pwd; export LD_LIBRARY_PATH; cd t; ./perl harness

export LD_LIBRARY_PATH=pwd; cd t; ./perl harness

for csh-style shells, like tcsh; or for traditional/modern

Bourne-style shells, like bash, ksh, and zsh, respectively.

Elapsed: 813 sec
u=10.37 s=4.16 cu=429.64 cs=50.00 scripts=2248 tests=851128