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解决,程序可以正常运行

相关推荐
萤萤七悬18 小时前
【AI精彩BUG汇总】一、yolo图像训练截图蓝色变橙色
人工智能·yolo·bug
小雨青年18 小时前
Git Bisect 实战:用二分法快速找到引入 Bug 的提交
git·bug
互联科技报1 天前
2026超融合选型:Top5品牌与市场格局解读
开发语言·perl
淘矿人1 天前
Claude辅助DevOps实践
java·大数据·运维·人工智能·算法·bug·devops
哥本哈士奇1 天前
LangChain Deepagent 版本0.6.1中间件一个bug
中间件·langchain·bug
java修仙传2 天前
Java 实习日记:断面状态筛选 Bug 修复与对比案例日期过滤优化
java·bug·实习
CeshirenTester2 天前
当其他人回复您的帖子时是否接收实时通知? “线上Bug排查3小时,CTO当场发火”:一套让测试人“硬气”起来的质量保障体系
bug
139的世界真奇妙3 天前
生产问题排查记录
golang·bug·学习方法
oioihoii3 天前
我的第一次移动端 AI 办公:在地铁上把 Bug 修了
人工智能·bug
Coder_Shenshen3 天前
【基于LibUA库的OPC UA服务器与客户端Demo——协议解析与Bug修复实践】
网络·c#·bug