Page 1 of 1

Cpan installation error

PostPosted: Tue May 15, 2007 5:16 am
by sandro
Hi,

iam trying to install cpan from scratch installation...
when iam trying to install the modules this the error coming...!

any one knows how to overcome this..plse suggest me..!

cpan> install Digest::MD5
Going to read /root/.cpan/sources/authors/01mailrc.txt.gz

gzip: /root/.cpan/sources/authors/01mailrc.txt.gz: not in gzip format
Going to read /root/.cpan/sources/modules/02packages.details.txt.gz

gzip: /root/.cpan/sources/modules/02packages.details.txt.gz: not in gzip format
Warning: Your /root/.cpan/sources/modules/02packages.details.txt.gz does not contain a Line-Count header.
Please check the validity of the index file by comparing it to more
than one CPAN mirror. I'll continue but problems seem likely to
happen.
Warning: Your /root/.cpan/sources/modules/02packages.details.txt.gz does not contain a Last-Updated header.
Please check the validity of the index file by comparing it to more
than one CPAN mirror. I'll continue but problems seem likely to
happen.
Going to read /root/.cpan/sources/modules/03modlist.data.gz

gzip: /root/.cpan/sources/modules/03modlist.data.gz: not in gzip format
Can't locate object method "data" via package "C

PAN::Modulelist" (perhaps you forgot to load "CPAN::Modulelist"?) at (eval 37) line 1.
at /usr/lib/perl5/5.8.5/CPAN.pm line 3406
CPAN::Index::rd_modlist('CPAN::Index', '/root/.cpan/sources/modules/03modlist.data.gz') called at /usr/lib/perl5/5.8.5/CPAN.pm line 3129
CPAN::Index::reload('CPAN::Index') called at /usr/lib/perl5/5.8.5/CPAN.pm line 675
CPAN::exists('CPAN=HASH(0x97a1548)', 'CPAN::Module', 'Digest::MD5') called at /usr/lib/perl5/5.8.5/CPAN.pm line 1842
CPAN::Shell::expandany('CPAN::Shell', 'Digest::MD5') called at /usr/lib/perl5/5.8.5/CPAN.pm line 2078
CPAN::Shell::rematein('CPAN::Shell', 'install', 'Digest::MD5') called at /usr/lib/perl5/5.8.5/CPAN.pm line 2165
CPAN::Shell::install('CPAN::Shell', 'Digest::MD5') called at /usr/lib/perl5/5.8.5/CPAN.pm line 201
eval {...} called at /usr/lib/perl5/5.8.5/CPAN.pm line 201
CPAN::shell() called at -e line 1

Regards,
Sandro

PostPosted: Tue May 15, 2007 10:16 am
by gardo
what linux distro and perl version are you using?

PostPosted: Wed May 16, 2007 12:48 am
by sandro
RHEL 4
perl 5.8.5-16 RHEL4

Regards,
Sandro

PostPosted: Wed May 16, 2007 3:12 am
by ramindia
Hi

if you are using RHEL ( licensed ?)

if its not licensed some of the packages will not update from RHEL
becuase of licence problems.

what instllation you did ?

server, desktop , custome

if you done custom, recomend for a starter to do everything, than minimal, so most of the package covered.

but check my post just couple of days back, Asterisk not starting in RHEL

using startup perl program.


still iam not able to figureout what is the problem. but when i get some solution sure will post back to group

ram

PostPosted: Wed May 16, 2007 8:20 am
by sandro
Thanks Ram,

i have installed server and customise packages..

regards,
Sandro

PostPosted: Wed May 16, 2007 8:26 am
by Abdul
Sandro:

follow this sequence and check

Install Bundle::cpan first
reload cpan
install Digest::MD5

if not installed then try with

force install Digest::MD5

PostPosted: Thu May 17, 2007 5:03 am
by Abdul
Sandro,

I got the same error and i resolved by following on RedHat.

#LANG=C
#export LANG

after install Digest::MD5 from cpan

Hope this works for you