Perl cpan::modulelist Workaround _php Tutorial

Source: Internet
Author: User
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 ...

  • Related Article

    Contact Us

    The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

    If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

    A Free Trial That Lets You Build Big!

    Start building with 50+ products and up to 12 months usage for Elastic Compute Service

    • Sales Support

      1 on 1 presale consultation

    • After-Sales Support

      24/7 Technical Support 6 Free Tickets per Quarter Faster Response

    • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.