Perl CPAN::Modulelist的解决办法_PHP教程
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结果有人是这样解决的
rm -rf ~/.cpan
删除后在perl -MCPAN -e shell中执行reload index
然后执行install Bundle::CPAN
最后执行reload CPAN即可正常通过命令行install MODULES
我按照这个做,结果reload index执行都报错,继续google,发现应该是Config.pm的问题,重新配置
cpan> o conf urllist unshift http://www.perl.com/CPAN/
cpan> o conf commit
然后再执行上面的reload index之后的步骤就OK了。
上一篇: java快速开发平台的相关技术
下一篇: PHP文件处理 ~~学习笔记_PHP教程
推荐阅读
-
php history.back返回后表单数据丢失的解决办法,history.back_PHP教程
-
BS模式中用php创建socket 无权限的解决办法_PHP教程
-
php“内存位置访问无效”错误的解决办法_PHP教程
-
php中Fatal error: Class ZipArchive not found的解决办法_PHP教程
-
php curl获取网页内容(IPV6下超时)的解决办法_PHP教程
-
PHPExcel导出Excel文件时出现错误的解决办法_PHP教程
-
PHP Date()出现错误的具体解决办法_PHP教程
-
PHP整数取余返回负数的相关解决办法_PHP教程
-
thinkphp自动验证与自动填充无效的解决办法_PHP教程
-
Perl CPAN::Modulelist的解决办法_PHP教程