[tpm] Help... I've buggered 'cpan install' and I cant get up!

Fulko Hew fulko.hew at gmail.com
Mon Mar 16 11:10:30 PDT 2009


On Mon, Mar 16, 2009 at 11:05 AM, Richard Dice <rdice at pobox.com> wrote:

> My first, and perhaps naive thought:  why not just go through and manually
> install each module that your newly-corrupted CPAN bitches about?  That is,
> do things the bad old way, with:
>
>  * <download module>
>  * perl Makefile.PL
>  * make
>  * make test
>  * sudo make install


Yup.  I've got it fixed. (but now I have to do a  'cpan -i xxx' rather than
'cpan install xxx')

The hard part was trying to figure out what I needed to re-install.
It turns out it was only one module, but it was dependant on another
which was dependant...  Anyway, it was only three in total.

Thanks.


On Mon, Mar 16, 2009 at 10:57 AM, Fulko Hew <fulko.hew at gmail.com> wrote:
>
>> I needed to install the NetSNMP Perl module
>> so I did the CPAN install...
>>
>> But it told me I needed to do a cpan install Bundle::CPAN
>> first to get the new version...  after a whack of packages
>> it seemed to wedge on  CPAN.pm itself.  See below.
>>
>> So, silly me, I control C'ed it.
>>
>> Now its buggered , and I can't seem to install anything.
>> as in the following:
>>
>> cpan install Bundle::CPAN
>> CPAN: Storable loaded ok
>> Going to read /root/.cpan/sources/authors/01mailrc.txt.gz
>> CPAN: Compress::Zlib loaded ok
>> Can't call method "value" on an undefined value at
>> /usr/lib/perl5/vendor_perl/5.8.8/IO/Uncompress/RawInflate.pm line 64.
>>
>>
>>
>> What can I do???
>>
>> TIA
>> Fulko
>>
>> PS. This is what it was doing when I control C'ed it:
>>
>>
>>   CPAN.pm: Going to build A/AN/ANDK/CPAN-1.9304.tar.gz
>>
>> Importing PAUSE public key into your GnuPG keychain... done!
>> (You may wish to trust it locally with 'gpg --lsign-key 450F89EC')
>> Checking if your kit is complete...
>> Looks good
>> Writing Makefile for CPAN
>> cp lib/CPAN.pm blib/lib/CPAN.pm
>> cp lib/CPAN/Admin.pm blib/lib/CPAN/Admin.pm
>> cp lib/CPAN/Tarzip.pm blib/lib/CPAN/Tarzip.pm
>> cp lib/CPAN/Debug.pm blib/lib/CPAN/Debug.pm
>> cp lib/CPAN/HandleConfig.pm blib/lib/CPAN/HandleConfig.pm
>> cp lib/CPAN/Queue.pm blib/lib/CPAN/Queue.pm
>> cp lib/CPAN/Distroprefs.pm blib/lib/CPAN/Distroprefs.pm
>> cp lib/CPAN/Kwalify/distroprefs.yml blib/lib/CPAN/Kwalify/distroprefs.yml
>> cp lib/CPAN/Version.pm blib/lib/CPAN/Version.pm
>> cp lib/CPAN/Kwalify.pm blib/lib/CPAN/Kwalify.pm
>> cp lib/CPAN/DeferedCode.pm blib/lib/CPAN/DeferedCode.pm
>> cp lib/CPAN/API/HOWTO.pod blib/lib/CPAN/API/HOWTO.pod
>> cp lib/CPAN/Kwalify/distroprefs.dd blib/lib/CPAN/Kwalify/distroprefs.dd
>> cp lib/CPAN/Nox.pm blib/lib/CPAN/Nox.pm
>> cp lib/CPAN/FirstTime.pm blib/lib/CPAN/FirstTime.pm
>> cp scripts/cpan blib/script/cpan
>> /usr/bin/perl "-MExtUtils::MY" -e "MY->fixin(shift)" blib/script/cpan
>> Manifying blib/man1/cpan.1
>> Manifying blib/man3/CPAN.3pm
>> Manifying blib/man3/CPAN::Tarzip.3pm
>> Manifying blib/man3/CPAN::Admin.3pm
>> Manifying blib/man3/CPAN::Debug.3pm
>> Manifying blib/man3/CPAN::HandleConfig.3pm
>> Manifying blib/man3/CPAN::Queue.3pm
>> Manifying blib/man3/CPAN::Distroprefs.3pm
>> Manifying blib/man3/CPAN::Version.3pm
>> Manifying blib/man3/CPAN::Kwalify.3pm
>> Manifying blib/man3/CPAN::API::HOWTO.3pm
>> Manifying blib/man3/CPAN::Nox.3pm
>> Manifying blib/man3/CPAN::FirstTime.3pm
>>   /usr/bin/make  -- OK
>> Running make test
>> PERL_DL_NONLAZY=1 /usr/bin/perl "-MExtUtils::Command::MM" "-e"
>> "test_harness(0, 'blib/lib', 'blib/arch')" t/*.t
>> t/00signature.t ..... WARNING: This key is not certified with a trusted
>> signature!
>> Primary key fingerprint: 50A0 ED26 8AA2 95BD 2CA0  411E EC80 39F0 A317
>> C15D
>> t/00signature.t ..... ok
>> t/01loadme.t ........ ok
>> t/02nox.t ........... ok
>> t/03pkgs.t .......... ok
>> t/10version.t ....... ok
>> t/11mirroredby.t .... ok
>> t/12cpan.t .......... 1/25 Can't call method "value" on an undefined value
>> at /usr/lib/perl5/vendor_perl/5.8.8/IO/Uncompress/RawInflate.pm line 64.
>> # Looks like you planned 25 tests but ran 1.
>> # Looks like your test exited with 25 just after 1.
>> t/12cpan.t .......... Dubious, test returned 25 (wstat 6400, 0x1900)
>> Failed 24/25 subtests
>> t/13tarzip.t ........ Can't call method "value" on an undefined value at
>> /usr/lib/perl5/vendor_perl/5.8.8/IO/Uncompress/RawInflate.pm line 64.
>> # Looks like your test exited with 25 before it could output anything.
>> t/13tarzip.t ........ Dubious, test returned 25 (wstat 6400, 0x1900)
>> Failed 1/1 subtests
>> t/14forkbomb.t ...... skipped: test only run when called with --doit
>> t/30shell.t ......... 140/239 ^Cmake: *** [test_dynamic] Interrupt
>>   /usr/bin/make test -- NOT OK
>> Running make install
>>   make test had returned bad status, won't install without force
>> File::Which is up to date.
>> Bundle summary: The following items in bundle Bundle::CPAN had
>> installation
>> problems:
>>   IO::Uncompress::Gunzip Compress::Zlib IO::Zlib Archive::Tar CPAN
>> Running install for module Compress::Zlib
>> Running make for P/PM/PMQS/Compress-Zlib-2.015.tar.gz
>>   Is already unwrapped into directory
>> /root/.cpan/build/Compress-Zlib-2.015
>>
>>
>> _______________________________________________
>> toronto-pm mailing list
>> toronto-pm at pm.org
>> http://mail.pm.org/mailman/listinfo/toronto-pm
>>
>>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.pm.org/pipermail/toronto-pm/attachments/20090316/b7d6ac28/attachment.html>


More information about the toronto-pm mailing list