gravatar for zhao03

3 hours ago by

when i try to use cpan to install perl model , there is an mistake. how can i solve this, i tired to reload index, but, this error always output. thank you for your help!

[email protected]:~/.cpan# cpan
Loading internal null logger. Install Log::Log4perl for logging messages
Terminal does not support AddHistory.

cpan shell -- CPAN exploration and modules installation (v2.18)
Enter 'h' for help.

cpan[1]> install XML:Simple
Fetching with HTTP::Tiny:
www.cpan.org/authors/01mailrc.txt.gz
Reading '/root/.cpan/sources/authors/01mailrc.txt.gz'
............................................................................DONE
Fetching with HTTP::Tiny:
www.cpan.org/modules/02packages.details.txt.gz
Reading '/root/.cpan/sources/modules/02packages.details.txt.gz'
Warning: Your /root/.cpan/sources/modules/02packages.details.txt.gz does not contain a Line-Count header.
Fetching with HTTP::Tiny:
www.cpan.org/modules/03modlist.data.gz
Reading '/root/.cpan/sources/modules/03modlist.data.gz'
Catching error: "Can't locate object method "data" via package "CPAN::Modulelist" (perhaps you forgot to load "CPAN::Modulelist"?) at (eval 48) line 1.cJ at /usr/share/perl/5.26/CPAN/Index.pm line 525.cJcICPAN::Index::rd_modlist("CPAN::Index", "/root/.cpan/sources/modules/03modlist.data.gz") called at /usr/share/perl/5.26/CPAN/Index.pm line 85cJcICPAN::Index::reload("CPAN::Index") called at /usr/share/perl/5.26/CPAN.pm line 992cJcICPAN::exists(CPAN=HASH(0x55bdbc17c4f8), "CPAN::Module", "XML:Simple") called at /usr/share/perl/5.26/CPAN/Shell.pm line 1308cJcICPAN::Shell::expandany("CPAN::Shell", "XML:Simple") called at /usr/share/perl/5.26/CPAN/Shell.pm line 1742cJcICPAN::Shell::rematein("CPAN::Shell", "install", "XML:Simple") called at /usr/share/perl/5.26/CPAN/Shell.pm line 2067cJcICPAN::Shell::__ANON__("CPAN::Shell", "XML:Simple") called at /usr/share/perl/5.26/CPAN.pm line 376cJcIeval {...} called at /usr/share/perl/5.26/CPAN.pm line 373cJcICPAN::shell() called at /usr/share/perl/5.26/App/Cpan.pm line 414cJcIApp::Cpan::_process_options("App::Cpan") called at /usr/share/perl/5.26/App/Cpan.pm line 511cJcIApp::Cpan::run("App::Cpan") called at /usr/bin/cpan line 13cJ" at /usr/share/perl/5.26/CPAN.pm line 392.
CPAN::shell() called at /usr/share/perl/5.26/App/Cpan.pm line 414
App::Cpan::_process_options("App::Cpan") called at /usr/share/perl/5.26/App/Cpan.pm line 511
App::Cpan::run("App::Cpan") called at /usr/bin/cpan line 13

link

modified 2 hours ago

written
3 hours ago
by

zhao0330



Source link