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:<br><br> * &lt;download module&gt;<br> * perl Makefile.PL<br>
 * make<br> * make test<br> * sudo make install<br><br><br><br><div class="gmail_quote">On Mon, Mar 16, 2009 at 10:57 AM, Fulko Hew <span dir="ltr">&lt;<a href="mailto:fulko.hew@gmail.com">fulko.hew@gmail.com</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><span style="font-family: courier new,monospace;">I needed to install the NetSNMP Perl module</span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;">so I did the CPAN install...</span><br style="font-family: courier new,monospace;">
<br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">But it told me I needed to do a cpan install Bundle::CPAN</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">first to get the new version...  after a whack of packages</span><br style="font-family: courier new,monospace;">

<span style="font-family: courier new,monospace;">it seemed to wedge on  CPAN.pm itself.  See below.</span><br style="font-family: courier new,monospace;"><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">So, silly me, I control C&#39;ed it.</span><br style="font-family: courier new,monospace;">

<br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">Now its buggered , and I can&#39;t seem to install anything.</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">as in the following:</span><br style="font-family: courier new,monospace;">

<br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">cpan install Bundle::CPAN</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">CPAN: Storable loaded ok</span><br style="font-family: courier new,monospace;">

<span style="font-family: courier new,monospace;">Going to read /root/.cpan/sources/authors/01mailrc.txt.gz</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">CPAN: Compress::Zlib loaded ok</span><br style="font-family: courier new,monospace;">

<span style="font-family: courier new,monospace;">Can&#39;t call method &quot;value&quot; on an undefined value at /usr/lib/perl5/vendor_perl/5.8.8/IO/Uncompress/RawInflate.pm line 64.</span><br style="font-family: courier new,monospace;">

<br style="font-family: courier new,monospace;"><br style="font-family: courier new,monospace;"><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">What can I do???</span><br style="font-family: courier new,monospace;">

<br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">TIA</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">Fulko</span><br style="font-family: courier new,monospace;">

<br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">PS. This is what it was doing when I control C&#39;ed it:</span><br style="font-family: courier new,monospace;"><br style="font-family: courier new,monospace;">

<br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">  CPAN.pm: Going to build A/AN/ANDK/CPAN-1.9304.tar.gz</span><br style="font-family: courier new,monospace;"><br style="font-family: courier new,monospace;">

<span style="font-family: courier new,monospace;">Importing PAUSE public key into your GnuPG keychain... done!</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">(You may wish to trust it locally with &#39;gpg --lsign-key 450F89EC&#39;)</span><br style="font-family: courier new,monospace;">

<span style="font-family: courier new,monospace;">Checking if your kit is complete...</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">Looks good</span><br style="font-family: courier new,monospace;">

<span style="font-family: courier new,monospace;">Writing Makefile for CPAN</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">cp lib/CPAN.pm blib/lib/CPAN.pm</span><br style="font-family: courier new,monospace;">

<span style="font-family: courier new,monospace;">cp lib/CPAN/Admin.pm blib/lib/CPAN/Admin.pm</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">cp lib/CPAN/Tarzip.pm blib/lib/CPAN/Tarzip.pm</span><br style="font-family: courier new,monospace;">

<span style="font-family: courier new,monospace;">cp lib/CPAN/Debug.pm blib/lib/CPAN/Debug.pm</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">cp lib/CPAN/HandleConfig.pm blib/lib/CPAN/HandleConfig.pm</span><br style="font-family: courier new,monospace;">

<span style="font-family: courier new,monospace;">cp lib/CPAN/Queue.pm blib/lib/CPAN/Queue.pm</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">cp lib/CPAN/Distroprefs.pm blib/lib/CPAN/Distroprefs.pm</span><br style="font-family: courier new,monospace;">

<span style="font-family: courier new,monospace;">cp lib/CPAN/Kwalify/distroprefs.yml blib/lib/CPAN/Kwalify/distroprefs.yml</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">cp lib/CPAN/Version.pm blib/lib/CPAN/Version.pm</span><br style="font-family: courier new,monospace;">

<span style="font-family: courier new,monospace;">cp lib/CPAN/Kwalify.pm blib/lib/CPAN/Kwalify.pm</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">cp lib/CPAN/DeferedCode.pm blib/lib/CPAN/DeferedCode.pm</span><br style="font-family: courier new,monospace;">

<span style="font-family: courier new,monospace;">cp lib/CPAN/API/HOWTO.pod blib/lib/CPAN/API/HOWTO.pod</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">cp lib/CPAN/Kwalify/distroprefs.dd blib/lib/CPAN/Kwalify/distroprefs.dd</span><br style="font-family: courier new,monospace;">

<span style="font-family: courier new,monospace;">cp lib/CPAN/Nox.pm blib/lib/CPAN/Nox.pm</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">cp lib/CPAN/FirstTime.pm blib/lib/CPAN/FirstTime.pm</span><br style="font-family: courier new,monospace;">

<span style="font-family: courier new,monospace;">cp scripts/cpan blib/script/cpan</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">/usr/bin/perl &quot;-MExtUtils::MY&quot; -e &quot;MY-&gt;fixin(shift)&quot; blib/script/cpan</span><br style="font-family: courier new,monospace;">

<span style="font-family: courier new,monospace;">Manifying blib/man1/cpan.1</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">Manifying blib/man3/CPAN.3pm</span><br style="font-family: courier new,monospace;">

<span style="font-family: courier new,monospace;">Manifying blib/man3/CPAN::Tarzip.3pm</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">Manifying blib/man3/CPAN::Admin.3pm</span><br style="font-family: courier new,monospace;">

<span style="font-family: courier new,monospace;">Manifying blib/man3/CPAN::Debug.3pm</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">Manifying blib/man3/CPAN::HandleConfig.3pm</span><br style="font-family: courier new,monospace;">

<span style="font-family: courier new,monospace;">Manifying blib/man3/CPAN::Queue.3pm</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">Manifying blib/man3/CPAN::Distroprefs.3pm</span><br style="font-family: courier new,monospace;">

<span style="font-family: courier new,monospace;">Manifying blib/man3/CPAN::Version.3pm</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">Manifying blib/man3/CPAN::Kwalify.3pm</span><br style="font-family: courier new,monospace;">

<span style="font-family: courier new,monospace;">Manifying blib/man3/CPAN::API::HOWTO.3pm</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">Manifying blib/man3/CPAN::Nox.3pm</span><br style="font-family: courier new,monospace;">

<span style="font-family: courier new,monospace;">Manifying blib/man3/CPAN::FirstTime.3pm</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">  /usr/bin/make  -- OK</span><br style="font-family: courier new,monospace;">

<span style="font-family: courier new,monospace;">Running make test</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">PERL_DL_NONLAZY=1 /usr/bin/perl &quot;-MExtUtils::Command::MM&quot; &quot;-e&quot; &quot;test_harness(0, &#39;blib/lib&#39;, &#39;blib/arch&#39;)&quot; t/*.t</span><br style="font-family: courier new,monospace;">

<span style="font-family: courier new,monospace;">t/00signature.t ..... WARNING: This key is not certified with a trusted signature!</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">Primary key fingerprint: 50A0 ED26 8AA2 95BD 2CA0  411E EC80 39F0 A317 C15D</span><br style="font-family: courier new,monospace;">

<span style="font-family: courier new,monospace;">t/00signature.t ..... ok</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">t/01loadme.t ........ ok</span><br style="font-family: courier new,monospace;">

<span style="font-family: courier new,monospace;">t/02nox.t ........... ok</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">t/03pkgs.t .......... ok</span><br style="font-family: courier new,monospace;">

<span style="font-family: courier new,monospace;">t/10version.t ....... ok</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">t/11mirroredby.t .... ok</span><br style="font-family: courier new,monospace;">

<span style="font-family: courier new,monospace;">t/12cpan.t .......... 1/25 Can&#39;t call method &quot;value&quot; on an undefined value at /usr/lib/perl5/vendor_perl/5.8.8/IO/Uncompress/RawInflate.pm line 64.</span><br style="font-family: courier new,monospace;">

<span style="font-family: courier new,monospace;"># Looks like you planned 25 tests but ran 1.</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;"># Looks like your test exited with 25 just after 1.</span><br style="font-family: courier new,monospace;">

<span style="font-family: courier new,monospace;">t/12cpan.t .......... Dubious, test returned 25 (wstat 6400, 0x1900)</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">Failed 24/25 subtests</span><br style="font-family: courier new,monospace;">

<span style="font-family: courier new,monospace;">t/13tarzip.t ........ Can&#39;t call method &quot;value&quot; on an undefined value at /usr/lib/perl5/vendor_perl/5.8.8/IO/Uncompress/RawInflate.pm line 64.</span><br style="font-family: courier new,monospace;">

<span style="font-family: courier new,monospace;"># Looks like your test exited with 25 before it could output anything.</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">t/13tarzip.t ........ Dubious, test returned 25 (wstat 6400, 0x1900)</span><br style="font-family: courier new,monospace;">

<span style="font-family: courier new,monospace;">Failed 1/1 subtests</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">t/14forkbomb.t ...... skipped: test only run when called with --doit</span><br style="font-family: courier new,monospace;">

<span style="font-family: courier new,monospace;">t/30shell.t ......... 140/239 ^Cmake: *** [test_dynamic] Interrupt</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">  /usr/bin/make test -- NOT OK</span><br style="font-family: courier new,monospace;">

<span style="font-family: courier new,monospace;">Running make install</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">  make test had returned bad status, won&#39;t install without force</span><br style="font-family: courier new,monospace;">

<span style="font-family: courier new,monospace;">File::Which is up to date.</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">Bundle summary: The following items in bundle Bundle::CPAN had installation</span><br style="font-family: courier new,monospace;">

<span style="font-family: courier new,monospace;">problems:</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">  IO::Uncompress::Gunzip Compress::Zlib IO::Zlib Archive::Tar CPAN</span><br style="font-family: courier new,monospace;">

<span style="font-family: courier new,monospace;">Running install for module Compress::Zlib</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">Running make for P/PM/PMQS/Compress-Zlib-2.015.tar.gz</span><br style="font-family: courier new,monospace;">

<span style="font-family: courier new,monospace;">  Is already unwrapped into directory /root/.cpan/build/Compress-Zlib-2.015</span><br style="font-family: courier new,monospace;"><br style="font-family: courier new,monospace;">

<br>_______________________________________________<br>
toronto-pm mailing list<br>
<a href="mailto:toronto-pm@pm.org">toronto-pm@pm.org</a><br>
<a href="http://mail.pm.org/mailman/listinfo/toronto-pm" target="_blank">http://mail.pm.org/mailman/listinfo/toronto-pm</a><br>
<br></blockquote></div><br>