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

相关推荐
沙尘暴炒饭1 小时前
关于uni-forms组件的bug【提交的字段[‘*‘]在数据库中并不存在】
bug
Kisorge20 小时前
【C语言】代码BUG排查方式
c语言·开发语言·bug
云计算DevOps-韩老师1 天前
【网络云计算】2024第52周-每日【2024/12/23】小测-理论&实操-解析
linux·运维·服务器·开发语言·网络·云计算·perl
安卓机器1 天前
探索 Python编程 调试案例:配置日志记录器查看程序运行bug
bug
树懒_Zz3 天前
记录 io.springfox 3.0.0 整合 spring boot 2.6.x 由于 springfox bug 引发问题
windows·spring boot·bug
每天进步一大步4 天前
webSokect安卓和web适配的Bug 适用实时语音场景
android·前端·bug·web
JWASX4 天前
【BUG记录】Apifox 参数传入 + 号变成空格的 BUG
java·bug·urlencoder·urldecoder
初遇你时动了情4 天前
解决react 路由切换,页面闪屏的bug
javascript·react.js·bug
老赵的博客4 天前
QString转const char* bug
bug