【Error】 perl:Can‘t locate open.pm in @INC (you may need to install the open module) (@INC contains

在尝试使用flamegraph.pl工具时遇到了Perl无法找到open模块的问题,错误提示为'Can't locate open.pm'。解决方法是通过更新Perl到最新版本,如使用yum install perl命令。在更新后,可能已经安装了perl-open模块,但问题依然存在。参考链接提供了更多可能的解决方案。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

 

本来就是火焰图不熟悉,perl的bug更是火上浇油

 

报错:
$ ./flamegraph.pl perf.folded > perf.svg
Can't locate open.pm in @INC (you may need to install the open module) (@INC contains: /usr/local/lib64/perl5 /usr/local/share/perl5 /usr/lib64/perl5/vendor_perl /usr/share/perl5/vendor_perl /usr/lib64/perl5 /usr/share/perl5) at ./flamegraph.pl line 97.
BEGIN failed--compilation aborted at ./flamegraph.pl line 97.

 

解决办法:

更新perl版本 :yum install perl 

可能安装上了这个:

 perl-open                               noarch            1.11-416.el8                                     AppStream             77 k

 

 

参考:

https://www.perlmonks.org/?node_id=1130068

以下报错是什么意思:make V=s -j4 bash: error while loading shared libraries: libtinfo.so.5: cannot open shared object file: No such file or directory bash: error while loading shared libraries: libtinfo.so.5: cannot open shared object file: No such file or directory awk: error while loading shared libraries: libreadline.so.6: cannot open shared object file: No such file or directory bash: error while loading shared libraries: libtinfo.so.5: cannot open shared object file: No such file or directory bash: error while loading shared libraries: libtinfo.so.5: cannot open shared object file: No such file or directory awk: error while loading shared libraries: libreadline.so.6: cannot open shared object file: No such file or directory Collecting package info: merging...awk: error while loading shared libraries: libreadline.so.6: cannot open shared object file: No such file or directory Collecting package info: done awk: error while loading shared libraries: libreadline.so.6: cannot open shared object file: No such file or directory bash: error while loading shared libraries: libtinfo.so.5: cannot open shared object file: No such file or directory bash: error while loading shared libraries: libtinfo.so.5: cannot open shared object file: No such file or directory awk: error while loading shared libraries: libreadline.so.6: cannot open shared object file: No such file or directory Collecting target info: merging...awk: error while loading shared libraries: libreadline.so.6: cannot open shared object file: No such file or directory Collecting target info: done Can't locate FindBin.pm in @INC (you may need to install the FindBin module) (@INC contains: /etc/perl /usr/local/lib/x86_64-linux-gnu/perl/5.22.1 /usr/local/share/perl/5.22.1 /usr/lib/x86_64-linux-gnu/perl5/5.22 /usr/share/perl5 /usr/lib/x86_64-linux-gnu/perl/5.22 /usr/share/perl/5.22 /usr/local/lib/site_perl /usr/lib/x86_64-linux-gnu/perl-base .) at ./scripts/metadata.pl line 2. BEGIN failed--compilation aborted at ./scripts/metadata.pl line 2. Failed to build tmp/.config-package.in Can't locate FindBin.pm in @INC (you may need to install the FindBin module) (@INC contains: /etc/perl /usr/local/lib/x86_64-linux-gnu/perl/5.22.1 /usr/local/share/perl/5.22.1 /usr/lib/x86_64-linux-gnu/perl5/5.22 /usr/share/perl5 /usr/lib/x86_64-linux-gnu/perl/5.22 /usr/share/perl/5.22 /usr/local/lib/site_perl /usr/lib/x86_64-linux-gnu/perl-base .) at ./scripts/metadata.pl line 2. BEGIN failed--compilation aborted at ./scripts/metadata.pl line 2. make[1]: *** [/home/cwj/openwrt-15.05.1/include/toplevel.mk:75: prepare-tmpinfo] Error 1 make: *** [/home/cwj/openwrt-15.05.1/include/toplevel.mk:181: world] Error 2
最新发布
08-07
评论 3
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值