I recently upgraded my perl installation from 5.6.1 to 5.8.0 (a default build from perl-5.8.0.tar.gz on Redhat 7.3). In the process I "cleaned up" a few things (it seemed like a good idea at the time). Now the setup for CPAN.pm is broken.

I have re-installed and reloaded CPAN.pm with no improvement.

Command line invocations like "perl -MCPAN -e 'install some_new_module'" also fail.

My efforts at reading through CPAN.pm, Googling, and PM Supersearch have produced nothing helpful.

What's broken? How do I fix this?

Here follows a transcript in which I first turn on DEBUG in the hope that it may be of help. (Side question: Is this the proper way to invoke DEBUG mode?)

[root@localhost root]# perl -MCPAN -e shell cpan shell -- CPAN exploration and modules installation (v1.70) ReadLine support enabled cpan> ! $CPAN::DEBUG = 1; cpan> i DBI Debug(CPAN:-e,1,[CPAN::shell|1|UNDEF|UNDEF|UNDEF|0|UUUUUUUUUUUU]): lin +e[i|DBI] CPAN: Storable loaded ok Going to read /root/.cpan/Metadata Database was generated on Mon, 12 May 2003 01:42:45 GMT CPAN: LWP::UserAgent loaded ok Fetching with LWP: ftp://ftp.cs.colorado.edu/pub/perl/CPAN/authors/01mailrc.txt.gz Going to read /root/.cpan/sources/authors/01mailrc.txt.gz CPAN: Compress::Zlib loaded ok Fetching with LWP: ftp://ftp.cs.colorado.edu/pub/perl/CPAN/modules/02packages.details.t +xt.gz Going to read /root/.cpan/sources/modules/02packages.details.txt.gz Database was generated on Tue, 13 May 2003 13:42:47 GMT Debug(CPAN:/usr/local/lib/perl5/5.8.0/CPAN.pm,3329,[CPAN::all_objects| +1|1|UNDEF|UNDEF|0|UUUUUUUUUUUU]): mgr[CPAN=HASH(0x848cf08)] class[CPA +N::Module] Debug(CPAN:/usr/local/lib/perl5/5.8.0/CPAN.pm,3329,[CPAN::all_objects| +1|1|UNDEF|UNDEF|0|UUUUUUUUUUUU]): mgr[CPAN=HASH(0x848cf08)] class[CPA +N::Bundle] Debug(CPAN:/usr/local/lib/perl5/5.8.0/CPAN.pm,3329,[CPAN::all_objects| +1|1|UNDEF|UNDEF|0|UUUUUUUUUUUU]): mgr[CPAN=HASH(0x848cf08)] class[CPA +N::Distribution] Fetching with LWP: ftp://ftp.cs.colorado.edu/pub/perl/CPAN/modules/03modlist.data.gz Going to read /root/.cpan/sources/modules/03modlist.data.gz Going to write /root/.cpan/Metadata Strange distribution name [DBI] Bundle Bundle::DBI (T/TI/TIMB/DBI-1.35.tar.gz) Module DBI (T/TI/TIMB/DBI-1.35.tar.gz) 2 items found cpan> i Palm Debug(CPAN:-e,1,[CPAN::shell|1|UNDEF|UNDEF|UNDEF|0|UUUUUUUUUUUU]): lin +e[i|Palm] Strange distribution name [Palm] No objects found of any type for argument Palm cpan> i DBD Debug(CPAN:-e,1,[CPAN::shell|1|UNDEF|UNDEF|UNDEF|0|UUUUUUUUUUUU]): lin +e[i|DBD] Strange distribution name [DBD] No objects found of any type for argument DBD cpan>
TIA,
David

------------------------------------------------------------
"Perl is a mess and that's good because the
problem space is also a mess.
" - Larry Wall


In reply to Broken CPAN.pm setup by dvergin

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.