This error was reported when CPAN was used to install the Term: ReadLine.
Going to read/root/. cpan/sources/modules/03modlist.data.gz
Can't locate object method "data" via package "CPAN: Modulelist" (perhaps you forgot to load "CPAN: Modulelist "?) At (eval 31) 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 (0x9c79658) ', 'cpan: module', 'TERM: readline ') called at/usr/lib/perl5/5.8.5/CPAN. pm line 1842
CPAN: Shell: expandany ('cpan: shell', 'TERM: readline') called at/usr/lib/perl5/5.8.5/CPAN. pm line 2078
CPAN: Shell: rematein ('cpan: shell', 'install', 'TERM: readline') called at/usr/lib/perl5/5.8.5/CPAN. pm line 2165
CPAN: Shell: install ('cpan: shell', 'TERM: readline') 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
Google's results are resolved in this way.
Rm-rf ~ /. Cpan
After deletion, execute reload index in perl-MCPAN-e shell.
Then execute install Bundle: CPAN
Run reload CPAN to run the command line install MODULES.
I followed this operation and returned an error when executing the reload index statement. Continue to google and find that it is a Config. pm problem. reconfigure it.
Cpan> o conf urllist unshift http://www.perl.com/CPAN/
Cpan> o conf commit
Then, execute the above reload index and the subsequent steps will be OK.