From: Ruben Safir on

I have a new distro of openSuse and cpan seems to be not working.

I'm getting weird errors like this

CPAN: Storable loaded ok (v2.18)
CPAN: LWP::UserAgent loaded ok (v5.829)
CPAN: Time::HiRes loaded ok (v1.9711)

I would like to connect to one of the following sites to get
'authors/01mailrc.txt.gz':

http://www.perl.org/CPAN/
ftp://ftp.perl.org/pub/CPAN/

Is it OK to try to connect to the Internet? [yes] yes
Fetching with LWP:
http://www.perl.org/CPAN/authors/01mailrc.txt.gz
Going to read /root/.cpan/sources/authors/01mailrc.txt.gz
.............................................................................DONE
Fetching with LWP:
http://www.perl.org/CPAN/modules/02packages.details.txt.gz
Use of uninitialized value $file_length in numeric lt (<) at /usr/lib/
perl5/vendor_perl/5.10.0/LWP/UserAgent.pm line 845.
Use of uninitialized value $file_length in concatenation (.) or string
at /usr/lib/perl5/vendor_perl/5.10.0/LWP/UserAgent.pm line 847.
Catching error: 'Transfer truncated: only out of 845183 bytes received
' at /usr/lib/perl5/5.10.0/CPAN.pm line 281
CPAN::shell() called at /usr/bin/cpan line 198
Going to read /root/.cpan/sources/authors/01mailrc.txt.gz
.............................................................................DONE
Fetching with LWP:
http://www.perl.org/CPAN/modules/02packages.details.txt.gz
Use of uninitialized value $file_length in numeric lt (<) at /usr/lib/
perl5/vendor_perl/5.10.0/LWP/UserAgent.pm line 845.
Use of uninitialized value $file_length in concatenation (.) or string
at /usr/lib/perl5/vendor_perl/5.10.0/LWP/UserAgent.pm line 847.
Lockfile removed.
Transfer truncated: only out of 845183 bytes received


??
From: Steve C on
Ruben Safir wrote:
> I have a new distro of openSuse and cpan seems to be not working.
>

Did you update or do a fresh install?

> I'm getting weird errors like this
>

always or sometimes?

Also, are you behind a firewall that could be blocking transfers?
From: Ruben Safir on
On Thu, 17 Dec 2009 11:58:53 -0500, Steve C wrote:

> Ruben Safir wrote:
>> I have a new distro of openSuse and cpan seems to be not working.
>>
>>
> Did you update or do a fresh install?
>
>> I'm getting weird errors like this
>>
>>
> always or sometimes?
>
> Also, are you behind a firewall that could be blocking transfers?

There is no firewall and it is always doing this. It renders cpan
useless, which is a big problem for me. I did a fresh install and then
untarred my development environment from perl 5.8, I've tried to
reinstall CPAN by hand but no change. I'm tried a source install of per,
but it is failing to compile on ODBM line. (see other posting)


This has been the worse upgrade i ever did on opensuse 11.2 from opensuse
9.2

Next time I'm ditching suse. I've had it.

Ruben

From: Steve C on
Ruben Safir wrote:
> On Thu, 17 Dec 2009 11:58:53 -0500, Steve C wrote:
>
>> Ruben Safir wrote:
>>> I have a new distro of openSuse and cpan seems to be not working.
>

There is this error:

Use of uninitialized value $file_length in concatenation (.) or string
at /usr/lib/perl5/vendor_perl/5.10.0/LWP/UserAgent.pm line 847.

and this:

> untarred my development environment from perl 5.8,

Could you have mixed something between perl 5.8 and 5.10?

If you have a ~/.cpan/ or ~root/.cpan/ directory from 5.8, just remove
it and let CPAN start from scratch.
From: brian d foy on
In article <hgc71m$4n5$2(a)reader1.panix.com>, Ruben Safir
<ruben(a)mrbrklyn.com> wrote:

> I have a new distro of openSuse and cpan seems to be not working.
>
> I'm getting weird errors like this

Check the configuration. It looks like you haven't setup things
correctly.