Beefy Boxes and Bandwidth Generously Provided by pair Networks
Just another Perl shrine
 
PerlMonks  

signature test failing

by Flame (Deacon)
on Aug 31, 2003 at 01:45 UTC ( #287970=perlquestion: print w/ replies, xml ) Need Help??
Flame has asked for the wisdom of the Perl Monks concerning the following question:

Fellow monks, I beg assistance.

I have long been a Win32-Perl (AS) programmer, and as such, have limited experience with CPAN(?:PLUS)? due to the lack of a C compiler. Well, now I'm working with multiple systems (I built me a LINUX BOX!!! (YAY!!)) and I'm running into one little problem after another.

I've been able to improvise pretty well to get around various problems, but this one has me a little stuck, and I admit, I'm not entirely certain it's a Perl problem, though it is making it difficult to install modules. I have no idea how to make sense of most of what CPAN/make reports during an install, so I will do my best to paste it below (While I have your attention, how DO you copy-paste from a terminal window? I had to use Webmin to get this.)

This is an excerpt from my attempt to upgrade Module::Signature thinking it may be the problem...

&gt; cpan -i Module::Signature CPAN: Storable loaded ok Going to read /root/.cpan/Metadata Database was generated on Sat, 30 Aug 2003 21:45:27 GMT Running install for module Module::Signature Running make for A/AU/AUTRIJUS/Module-Signature-0.35.tar.gz CPAN: Digest::MD5 loaded ok CPAN: Compress::Zlib loaded ok Checksum for /root/.cpan/sources/authors/id/A/AU/AUTRIJUS/Module-Signa +ture-0.35.tar.gz ok Scanning cache /root/.cpan/build for sizes Module-Signature-0.35/ Module-Signature-0.35/inc/ Module-Signature-0.35/inc/ExtUtils/ Module-Signature-0.35/inc/ExtUtils/AutoInstall.pm Module-Signature-0.35/inc/Module/ Module-Signature-0.35/inc/Module/Install.pm Module-Signature-0.35/inc/Module/Install/ Module-Signature-0.35/inc/Module/Install/AutoInstall.pm Module-Signature-0.35/inc/Module/Install/Fetch.pm Module-Signature-0.35/inc/Module/Install/Include.pm Module-Signature-0.35/inc/Module/Install/Makefile.pm Module-Signature-0.35/inc/Module/Install/Base.pm Module-Signature-0.35/inc/Module/Install/Scripts.pm Module-Signature-0.35/inc/Module/Install/Metadata.pm Module-Signature-0.35/inc/Module/Install/Can.pm Module-Signature-0.35/inc/Module/Install/Win32.pm Module-Signature-0.35/inc/SCRIPTS/ Module-Signature-0.35/inc/SCRIPTS/cpansign Module-Signature-0.35/bin/ Module-Signature-0.35/bin/cpansign Module-Signature-0.35/lib/ Module-Signature-0.35/lib/Module/ Module-Signature-0.35/lib/Module/Signature.pm Module-Signature-0.35/PAUSE2003.pub Module-Signature-0.35/Changes Module-Signature-0.35/t/ Module-Signature-0.35/t/1-basic.t Module-Signature-0.35/t/0-signature.t Module-Signature-0.35/MANIFEST Module-Signature-0.35/TODO Module-Signature-0.35/META.yml Module-Signature-0.35/AUTRIJUS.pub Module-Signature-0.35/AUTHORS Module-Signature-0.35/SIGNATURE Module-Signature-0.35/README Module-Signature-0.35/Makefile.PL Removing previously used /root/.cpan/build/Module-Signature-0.35 CPAN.pm: Going to build A/AU/AUTRIJUS/Module-Signature-0.35.tar.gz *** Looking for GnuPG (GNU Privacy Guard, a cryptographic signature to +ol)... gpg: /root/.gnupg/options:1: invalid option gpg: /root/.gnupg/options:2: invalid option gpg: /root/.gnupg/options:3: invalid option gpg: /root/.gnupg/options:1: invalid option gpg: /root/.gnupg/options:2: invalid option gpg: /root/.gnupg/options:3: invalid option GnuPG found (/usr/bin/gpg). Importing PAUSE and author keys to GnuPG. +.. gpg: /root/.gnupg/options:1: invalid option gpg: /root/.gnupg/options:2: invalid option gpg: /root/.gnupg/options:3: invalid option done. *** ExtUtils::AutoInstall version 0.52 *** Checking for dependencies... [Core Features] - Test::More ...loaded. (0.47) - Digest::SHA1 ...loaded. (2.02) [Sign and verify PAR (Perl Archive) files] - PAR::Dist ...loaded. (0.05) *** ExtUtils::AutoInstall configuration finished. Checking if your kit is complete... Looks good Writing Makefile for Module::Signature Now, please enter 'make test' to test, and 'make install' to install. cp lib/Module/Signature.pm blib/lib/Module/Signature.pm cp inc/SCRIPTS/cpansign blib/script/cpansign /usr/local/bin/perl "-MExtUtils::MY" -e "MY->fixin(shift)" blib/script +/cpansign Manifying blib/man3/Module::Signature.3 /usr/bin/make -- OK Running make test PERL_DL_NONLAZY=1 /usr/local/bin/perl "-MExtUtils::Command::MM" "-e" " +test_harness(0, 'blib/lib', 'blib/arch')" t/0-signature.t t/1-basic.t t/0-signature....gpg: /root/.gnupg/options:1: invalid option gpg: /root/.gnupg/options:2: invalid option gpg: /root/.gnupg/options:3: invalid option gpg: /root/.gnupg/options:1: invalid option gpg: /root/.gnupg/options:2: invalid option gpg: /root/.gnupg/options:3: invalid option ==> BAD/TAMPERED signature detected! <== # Failed test (t/0-signature.t at line 17) # Looks like you failed 1 tests of 1. dubious Test returned status 1 (wstat 256, 0x100) DIED. FAILED test 1 Failed 1/1 tests, 0.00% okay t/1-basic........ok Failed 1/2 test scripts, 50.00% okay. 1/3 subtests failed, 66.67% okay +. Failed Test Stat Wstat Total Fail Failed List of Failed ---------------------------------------------------------------------- +--------- t/0-signature.t 1 256 1 1 100.00% 1 make: *** [test_dynamic] Error 29 /usr/bin/make test -- NOT OK Running make install make test had returned bad status, won't install without force

Based upon what it prints, I'm thinking it may have something to do with GnuPG, but I just re-built it and had no better luck.

Thanks for any and all advice, including, if you can specify a specific document, RTFM, as I have been unable to locate anything pertinant on the GnuPG website, nor in the Module::Signature docs.

Final note: It isn't just Module::Signature that is having a hard time installing; anything with a signature test is failing, including (but not limited to) Bundle::CPAN.



My code doesn't have bugs, it just develops random features.

Flame ~ Lead Programmer: GMS (DOWN) | GMS (DOWN)

Comment on signature test failing
Download Code
Re: signature test failing
by asarih (Hermit) on Aug 31, 2003 at 02:55 UTC
    It appears to me that the file /root/.gpg/options has something gpg doesn't like.

    Does gpg work independently? Examine the content of the options file, and make sure that you can sign and verify files.

Re: signature test failing
by v_thunder (Scribe) on Aug 31, 2003 at 03:53 UTC

    As asarih said, it looks like your ~root/.gnupg/options file is causing trouble. This is causing the "make test" portion of the build fail, which in turn stops the build process. You could try moving the options file out of the way, or editing it to remove/fix the offending lines.

    As for your question about cut/paste, try selecting the text you want to paste, then using the middle mouse button to paste. Whenever you select anything, it automatically gets copied. If you only have two buttons, try pressing them both at once (though that could require some setup).

      ... Ok, I feel stupid now... confused, but stupid. In my directory view, I could not see any .gnupg folder, I had to attempt to go to it before it appeared... anyway, it seems the comments at the top of the file were causing the problems. (the ones saying that they will be removed when the file is copied to other users).

      Thanks.. heh



      My code doesn't have bugs, it just develops random features.

      Flame ~ Lead Programmer: GMS (DOWN) | GMS (DOWN)

        if you were trying to see the .gnupg directory using ls or ls -l, what you need is ls -a or ls -la

        In Linux and *nix, Files whose names begin with a dot are"hidden" - they don't show in listings by default.

        --Bob Niederman, http://bob-n.com

        All code given here is UNTESTED unless otherwise stated.

        please, type this:

        whoami

        You'll see that you are compiling gnupg as root (so your home now is /root).

        You shouldn't do this to get your .gnupg at your user home. Try to never compile as root.

        There is a kdesu command (check man kdesu or info kdesu) that can log you as root only for some command. But I don't know how could you install a module that also compiles gnupg...

        If I were you, I would read the INSTALL file first:

        joe INSTALL

        You should read some FAQs or LINUX newsgroups (there should be all the answers, previously posted by others that had solved this before).

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: perlquestion [id://287970]
Approved by TStanley
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others contemplating the Monastery: (6)
As of 2014-07-12 01:34 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    When choosing user names for websites, I prefer to use:








    Results (238 votes), past polls