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 小时前
【Python报错已解决】ModuleNotFoundError: No module named ‘paddle‘
开发语言·python·机器学习·bug·paddle
腾飞的信仰2 天前
如何快速解决程序中的BUG
bug
Everglowwwwww2 天前
【bug】通过lora方式微调sdxl inpainting踩坑
学习·计算机视觉·ai作画·stable diffusion·bug
数据最前线2 天前
创建索引遇到这个Bug,19c中还没有修复
oracle·bug
CV金科2 天前
蓝桥杯-STM32G431RBT6(UART解析字符串sscanf和解决串口BUG)
c语言·stm32·单片机·嵌入式硬件·mcu·算法·bug
DisonTangor3 天前
网传阿里云盘出现bug,可看到其他用户云盘图片
阿里云·bug
后端小张3 天前
System.out源码解读——err 和 out 一起用导致的顺序异常Bug
java·开发语言·jdk·bug
我又来搬代码了3 天前
【Android】【Bug】Activity全屏(保留底部按钮)被打断变成非全屏了
android·bug
__water3 天前
『功能项目』调整Boss技能bug【51】
c#·bug·unity引擎
johnny2333 天前
《Effective Debugging:软件和系统调试的66个有效方法》读书笔记-Part2
bug