Beefy Boxes and Bandwidth Generously Provided by pair Networks Cowboy Neal with Hat
Do you know where your variables are?
 
PerlMonks  

Broken CPAN.pm setup

by dvergin (Monsignor)
on May 13, 2003 at 18:02 UTC ( #257854=perlquestion: print w/ replies, xml ) Need Help??
dvergin has asked for the wisdom of the Perl Monks concerning the following question:

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 can only install modules that I already have older versions of.
  • I consistently get the message "Strange distribution name [distname]" where 'distname' can be any module (installed or otherwise).
  • The 'i' function (display about anything) only tells me about what is installed -- not what is available on the server.

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

Comment on Broken CPAN.pm setup
Download Code
Re: Broken CPAN.pm setup
by chromatic (Archbishop) on May 13, 2003 at 18:16 UTC

    What happens if you remove CPAN::Config (temporarily; back it up first) and then try to run CPAN from the shell again?

      • It took me through the init sequence again.
      • It displayed: commit: wrote /usr/local/lib/perl5/5.8.0/CPAN/Config.pm
      • The CPAN shell responded as before (no improvement)
      • When I exited, it had erased the backup Config.pm.bak in /usr/local/lib/perl5/5.8.0/CPAN (next time I'll put it someplace else)
      Would it help to paste in Config.pm here? (It looks like I 'spose it oughta.)

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (10)
As of 2014-04-21 16:51 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    April first is:







    Results (498 votes), past polls