Today, I installed term::readline with CPAN and reported a mistake like this.
Going to read/root/.cpan/sources/modules/03modlist.data.gz
Can ' t Locate object method "data" via Package "cpan::modulelist" (perhaps do forgot to load "cpan::modulelist"?) at (eval ) 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 results that's how someone solves it.
RM-RF ~/.cpan
After deletion, execute reload index in the PERL-MCPAN-E shell
Then execute the Install Bundle::cpan
The final execution of the reload cpan can be done normally via the command line install MODULES
I follow this to do, the result reload index execution all error, continue Google, found should be config.pm problem, reconfigure
cpan> o conf urllist unshift http://www.perl.com/CPAN/
cpan> o conf Commit
Then execute the above reload index after the step is OK.
http://www.bkjia.com/PHPjc/444734.html www.bkjia.com true http://www.bkjia.com/PHPjc/444734.html techarticle today with CPAN installed Term::readline, reported a such error going to read/root/.cpan/sources/modules/03modlist.data.gz Can ' t locate object Method data via Package Cpan::modulelis ...