satyrx has asked for the wisdom of the Perl Monks concerning the following question:

I am running standard install of RH 8.0 with perl v5.8.0. I am trying to update CPAN.pm and I am getting the following error;
cpan> install Bundle::CPAN Going to read /export/home/satyr/.cpan/sources/authors/01mailrc.txt.gz Going to read /export/home/satyr/.cpan/sources/modules/02packages.deta +ils.txt.gz Database was generated on Fri, 01 Nov 2002 03:22:29 GMT There's a new CPAN.pm version (v1.63) available! [Current version is v1.61] You might want to try install Bundle::CPAN reload cpan without quitting the current session. It should be a seamless upgrad +e while we are running... Fetching with LWP: ftp://cpan.cse.msu.edu/modules/03modlist.data.gz Can't locate object method "new" via package "HTTP::Request" at /usr/l +ib/perl5/vendor_perl/5.8.0/HTTP/Request.pm line 62. cpan>
Anyone seen this? Know how to fix it?

I haven't really used CPAN much and have been hunting around the FAQs but haven't found anything that addresses this specifically. I appreciate everyone's time

Thanks,
Michael

Edit by dws to add tags

Replies are listed 'Best First'.
Re: lwp HTTP::Request question
by defyance (Curate) on Nov 02, 2002 at 06:14 UTC
    Morning! I can't say that I have run into your particular problem. I upgraded CPAN.pm with no problems on RedHat 7.3 perl -v 5.6.1. Might I suggest re-installing HTTP::Request?

    Not sure if you tried that already :-).

    Also, here is line 62 from HTTP::Request:

    sub new { my($class, $method, $uri, $header, $content) = @_; my $self = $class->SUPER::new($header, $content); # L. 62 $self->method($method); $self->uri($uri); $self; }
    -- Can't never could do anything, so give me and inch, I'll make it a mile.
Re: lwp HTTP::Request question
by Aristotle (Chancellor) on Nov 02, 2002 at 06:21 UTC
    All hints point to the LWP installation somehow being botched; why this would happen is anyone's guess. Try the Windows method - fetch the LWP tarball and install it manually and see if that fixes your problem. If not, the problem may lie deeper..

    Makeshifts last the longest.