Perl: Can‘t locate List/MoreUtils.pm in @INC

BUG:

运行perl 脚本时报错:

sh 复制代码
Can't locate List/MoreUtils.pm in @INC (@INC contains: /opt/rh/devtoolset-7/root/usr/lib64/perl5/vendor_perl /opt/rh/devtoolset-7/root/usr/share/perl5/vendor_perl /public/home/bgi_wangbinhu/perl5/lib/perl5/5.16.3/x86_64-linux-thread-multi /public/home/bgi_wangbinhu/perl5/lib/perl5/5.16.3 /public/home/bgi_wangbinhu/perl5/lib/perl5/x86_64-linux-thread-multi /public/home/bgi_wangbinhu/perl5/lib/perl5 /usr/local/lib64/perl5 /usr/local/share/perl5 /usr/lib64/perl5/vendor_perl /usr/share/perl5/vendor_perl /usr/lib64/perl5 /usr/share/perl5 .)

解决方法:

sh 复制代码
cpanm List::MoreUtils

安装包过程:

bash 复制代码
cpanm List::MoreUtils
--> Working on List::MoreUtils
Fetching http://www.cpan.org/authors/id/R/RE/REHSACK/List-MoreUtils-0.430.tar.gz ... OK
Configuring List-MoreUtils-0.430 ... OK
==> Found dependencies: Test::LeakTrace, Exporter::Tiny, List::MoreUtils::XS
--> Working on Test::LeakTrace
Fetching http://www.cpan.org/authors/id/L/LE/LEEJO/Test-LeakTrace-0.17.tar.gz ... OK
Configuring Test-LeakTrace-0.17 ... OK
Building and testing Test-LeakTrace-0.17 ... OK
Successfully installed Test-LeakTrace-0.17
--> Working on Exporter::Tiny
Fetching http://www.cpan.org/authors/id/T/TO/TOBYINK/Exporter-Tiny-1.006002.tar.gz ... OK
Configuring Exporter-Tiny-1.006002 ... OK
Building and testing Exporter-Tiny-1.006002 ... OK
Successfully installed Exporter-Tiny-1.006002
--> Working on List::MoreUtils::XS
Fetching http://www.cpan.org/authors/id/R/RE/REHSACK/List-MoreUtils-XS-0.430.tar.gz ... OK
Configuring List-MoreUtils-XS-0.430 ... OK
==> Found dependencies: XSLoader
--> Working on XSLoader
Fetching http://www.cpan.org/authors/id/S/SA/SAPER/XSLoader-0.24.tar.gz ... OK
Configuring XSLoader-0.24 ... OK
Building and testing XSLoader-0.24 ... OK
Successfully installed XSLoader-0.24 (upgraded from 0.16)
Building and testing List-MoreUtils-XS-0.430 ... OK
Successfully installed List-MoreUtils-XS-0.430
Building and testing List-MoreUtils-0.430 ... OK
Successfully installed List-MoreUtils-0.430 (upgraded from 0.33)
5 distributions installed

BUG解决,程序可以正常运行

相关推荐
枸杞配码2 小时前
arthas线上不停机修改bug
ide·pycharm·bug
Htht1112 小时前
【Github】之【Bug】一直无法连接github的ssh
ssh·github·bug
致微2 天前
Vue项目 bug 解决
前端·vue.js·bug
网安小陈2 天前
【网安】处理项目中的一些常见漏洞bug(java相关)
java·开发语言·数据库·安全·web安全·网络安全·bug
北冥有鱼被烹4 天前
【问题记录】C语言一个程序bug定位记录?(定义指针数组忘记[])
c语言·bug
GuokLiu4 天前
250405-VSCode编辑launch.json实现Debug调试Open-WebUI
vscode·debug·open-webui
越学不动啦5 天前
三、概念篇+Bug篇
bug·测试·软件测试入门·bug测试
伏游5 天前
【BUG】生产环境死锁问题定位排查解决全过程
服务器·数据库·spring boot·后端·postgresql·bug
越学不动啦8 天前
四、Bug篇+用例篇
软件测试·测试用例·bug·软件工程·测试基础
有时间要学习8 天前
Test——BUG篇
bug·测试