Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

cpan errors

11 views
Skip to first unread message

Ruben Safir

unread,
Dec 16, 2009, 10:03:18 PM12/16/09
to

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


??

Steve C

unread,
Dec 17, 2009, 11:58:53 AM12/17/09
to
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?

Ruben Safir

unread,
Dec 17, 2009, 1:48:04 PM12/17/09
to

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

Steve C

unread,
Dec 18, 2009, 2:42:25 PM12/18/09
to
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.

brian d foy

unread,
Dec 19, 2009, 5:23:15 AM12/19/09
to
In article <hgc71m$4n5$2...@reader1.panix.com>, Ruben Safir
<ru...@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.

Ruben Safir

unread,
Dec 21, 2009, 6:02:04 AM12/21/09
to
On Sat, 19 Dec 2009 04:23:15 -0600, brian d foy 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.

Thanks Brian

I did check and it looks right. I just ./cpan file and no change. I
then downloaded perl 5.10.1 and compiled it by hand. It had a problem
with the ODBM module which I did a work around (actually I just pulled it
from the make file). Then cpan worked great. But now there is another
problem. YaST is dependent on perl 5.10.0 and yast doesn't work
correctly.

The SuSE version (5.10.0) has these paths

/usr/lib/perl5/5.10.0/i586-linux-thread-multi
/usr/lib/perl5/5.10.0
/usr/lib/perl5/site_perl/5.10.0/i586-linux-thread-multi
/usr/lib/perl5/site_perl/5.10.0
/usr/lib/perl5/vendor_perl/5.10.0/i586-linux-thread-multi
/usr/lib/perl5/vendor_perl/5.10.0
/usr/lib/perl5/vendor_perl

And there is a who bunch of stuff in the vendor section for Yast

and then the new version has these paths

/usr/local/lib/perl5/5.10.1/i686-linux-thread-multi-ld
/usr/local/lib/perl5/5.10.1
/usr/lib/perl5/site_perl/5.10.1/i686-linux-thread-multi-ld
/usr/lib/perl5/site_perl/5.10.1

This problem with cpan has now snowballed into a system wide
issue...which sux.

Any thoughts on a fix. Can I just cp the vender directory to the
site_perl/5.10.1 or will that cause more chaos

Ruben

Mumia W.

unread,
Dec 21, 2009, 2:02:50 PM12/21/09
to
On 12/21/2009 05:02 AM, Ruben Safir wrote:
> On Sat, 19 Dec 2009 04:23:15 -0600, brian d foy 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.
>
> Thanks Brian
>
> I did check and it looks right. I just ./cpan file and no change. I
> then downloaded perl 5.10.1 and compiled it by hand. It had a problem
> with the ODBM module which I did a work around (actually I just pulled it
> from the make file). Then cpan worked great. But now there is another
> problem. YaST is dependent on perl 5.10.0 and yast doesn't work
> correctly.
>
> The SuSE version (5.10.0) has these paths
> [...]

The two versions of Perl may conflict--especially if they are both
available through the $PATH. Rename the new Perl interpreter to
something like /usr/local/bin/perl5.10.1 ; however, I'm not completely
convinced that you need a self-compiled version of Perl.

I was hoping that your problems would be fixed by Steve C.'s advice of
removing ~/.cpan, but you never said what the result of taking that
advice was.

Ruben Safir

unread,
Dec 21, 2009, 6:23:11 PM12/21/09
to

Mumia -

Sorry about not being clear enough. The first thing I did when there was
a problem was that you did an rm -rf ./.cpan on /root

0 new messages