Can‘t locate XXX/XXX.pm in @INC (you may need to install the XXX::XXX module)
短信预约 -IT技能 免费直播动态提醒
错误的日志如下,在执行tmake时,出现Can't locate Capture/Tiny.pm
coco@nvdla:~/NVDLA/hw-master$ ./tools/bin/tmake -build vmodCan't locate Capture/Tiny.pm in @INC (you may need to install the Capture::Tiny module) (@INC contains: /etc/perl /usr/local/lib/perl/5.18.2 /usr/local/share/perl/5.18.2 /usr/lib/perl5 /usr/share/perl5 /usr/lib/perl/5.18 /usr/share/perl/5.18 /usr/local/lib/site_perl .) at ./tools/bin/tmake line 12.BEGIN failed--compilation aborted at ./tools/bin/tmake line 12.
解决方案:
前往metacpan这个网站:https://metacpan.org/pod,根据日志(XXX/XXX.pm)去搜索需要的文件,本文中为Capture/Tiny.pm
点击左下角download
3、下载完成后,开始解压
unzip .zip
进入到解压的文件夹中,依次执行以下命令
cd Capture-Tiny-0.48/perl Makefile.PL make sudo make install
问题解决!!!!!!!
coco@nvdla:~$ cd Capture-Tiny-0.48/Changes CONTRIBUTING.mkdn cpanfile dist.ini examples lib LICENSE Makefile.PL MANIFEST META.json META.yml perlcritic.rc README t Todo xtcoco@nvdla:~/Capture-Tiny-0.48$ perl Makefile.PL Checking if your kit is complete...Looks goodWriting Makefile for Capture::TinyWriting MYMETA.yml and MYMETA.jsonwade@nvdla:~/Capture-Tiny-0.48$ make cp lib/Capture/Tiny.pm blib/lib/Capture/Tiny.pmManifying blib/man3/Capture::Tiny.3pmcoco@nvdla:~/Capture-Tiny-0.48$ make install!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!ERROR: Can't create '/usr/local/man/man3'Do not have write permissions on '/usr/local/man/man3'!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! at -e line 1.make: *** [pure_site_install] Error 13coco@nvdla:~/Capture-Tiny-0.48$ sudo make install[sudo] password for coco: Installing /usr/local/share/perl/5.18.2/Capture/Tiny.pmInstalling /usr/local/man/man3/Capture::Tiny.3pmAppending installation info to /usr/local/lib/perl/5.18.2/perllocal.pod
来源地址:https://blog.csdn.net/m0_48701995/article/details/126598748
免责声明:
① 本站未注明“稿件来源”的信息均来自网络整理。其文字、图片和音视频稿件的所属权归原作者所有。本站收集整理出于非商业性的教育和科研之目的,并不意味着本站赞同其观点或证实其内容的真实性。仅作为临时的测试数据,供内部测试之用。本站并未授权任何人以任何方式主动获取本站任何信息。
② 本站未注明“稿件来源”的临时测试数据将在测试完成后最终做删除处理。有问题或投稿请发送至: 邮箱/279061341@qq.com QQ/279061341