返回顶部
首页 > 资讯 > 后端开发 > PHP编程 >Can‘t locate XXX/XXX.pm in @INC (you may need to install the XXX::XXX module)
  • 212
分享到

Can‘t locate XXX/XXX.pm in @INC (you may need to install the XXX::XXX module)

perlphp 2023-08-31 16:08:41 212人浏览 泡泡鱼
摘要

  错误的日志如下,在执行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

猜你喜欢
软考高级职称资格查询
编程网,编程工程师的家园,是目前国内优秀的开源技术社区之一,形成了由开源软件库、代码分享、资讯、协作翻译、讨论区和博客等几大频道内容,为IT开发者提供了一个发现、使用、并交流开源技术的平台。
  • 官方手机版

  • 微信公众号

  • 商务合作