错误的日志如下,在执行tmake时,出现Can't locate Capture/Tiny.pm coco@nvdla:~/NVDLA/hw-master$ ./tools/bin/tmake -build vmodCan't lo
错误的日志如下,在执行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
--结束END--
本文标题: Can‘t locate XXX/XXX.pm in @INC (you may need to install the XXX::XXX module)
本文链接: https://lsjlt.com/news/386255.html(转载时请注明来源链接)
有问题或投稿请发送至: 邮箱/279061341@qq.com QQ/279061341
2024-02-29
2024-02-29
2024-02-29
2024-02-29
2024-02-29
2024-02-29
2024-02-29
2024-02-29
2024-02-29
2024-02-29
回答
回答
回答
回答
回答
回答
回答
回答
回答
回答
0