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

相关推荐
li90566328018 小时前
hanzi-writer-miniprogram Path2D问题以及Bug修复
微信小程序·bug
万粉变现经纪人1 天前
如何解决 pip install cx_Oracle 报错 未找到 Oracle Instant Client 问题
数据库·python·mysql·oracle·pycharm·bug·pip
ChoSeitaku2 天前
Git分支|创建分支|切换分支|合并分支|删除分支|合并冲突分支|分支策略|bug分支|强制删除分支
bug
历程里程碑3 天前
链表-----
数据结构·线性代数·算法·链表·矩阵·lua·perl
Lxinccode3 天前
BUG(23) : node版claude code启动报错Failed to connect to api.anthropic.com: ETIMEDOUT
bug·claude·claude启动报错
buyulian3 天前
Bug防御体系:技术方案的优与劣
java·经验分享·bug·软件工程
川石课堂软件测试4 天前
接口测试需要注意的一些BUG
网络·数据库·python·单元测试·bug·压力测试·tornado
深念Y4 天前
记一个BUG:Trae里MongoDB和MySQL MCP不能共存
数据库·mysql·mongodb·ai·bug·agent·mcp
朵朵奇葩向阳开#4 天前
【无标题】
javascript·typescript·ruby·laravel·perl·composer
测试_AI_一辰5 天前
AI系统测试实践:Tool执行与状态管理(Agent系统最容易出Bug的地方)
人工智能·ai·自动化·bug·ai编程