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.