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
??
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
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.
> 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.
>> 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
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.
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