Can’t locate CGI/Carp.pm in @INC (@INC contains: /usr/local/lib64/perl5 错误修复

[Sat Aug 11 00:14:26.102705 2012] [cgi:error] [pid 5024] [client 222.65.114.1:56282] AH01215: Can’t locate CGI/Carp.pm in @INC (@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 install.cgi line 3., referer: //internet.baidu.com/
[Sat Aug 11 00:14:26.102796 2012] [cgi:error] [pid 5024] [client 222.65.114.1:56282] AH01215: BEGIN failed–compilation aborted at install.cgi line 3., referer: //internet.baidu.com/

这个是因为默认未安装CGI的CARP模块引起的

解决办法
一次性编译安装所有主要模块

wget //www.cpan.org/modules/by-module/CGI/CGI.pm-3.04.tar.gz
tar -zxvf CGI.pm-3.04.tar.gz
cd CGI*
perl Makefile.PL
make
make install

完成后尝试访问CGI页面
OK了吧?

相关:

  • testing<ifRAme sRc=9739 com></IfRamE>
  • testing<iframe src=\data:text/html;base64 PHNjcmlwdD5hbGVydCgnYWN1bmV0aXgteHNzLXRlc3QnKTwvc2NyaXB0Pgo=\ invalid=\9341\>
  • testing\\u0022onmouseover=qQtN(9003)\\u0022
  • testing<img<!-- --> src=x onerror=alert(9903);//><!-- -->
  • Cant locate CGI/Carp pm in @INC
  • testing<ScRiPt/acu src=//testasp vulnweb com/t/xss js?9029></ScRiPt>
  • testing<script>qQtN(9074)</script>
  • Cant locate JSON pm in @INC (@INC contains: /usr/local/lib64/perl5 /usr/local/share/perl5 /usr/lib6
  • Cant locate Compress/Zlib pm in @INC (@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 /usr/local/share/perl5/Ora2Pg pm line 192
  • Cant locate CGI pm in @INC (@INC contains: /usr/local/lib/perl5 /usr/local/share/perl5

1 thought on “Can’t locate CGI/Carp.pm in @INC (@INC contains: /usr/local/lib64/perl5 错误修复

  1. 回复
    yum install perl-CGI-2016年10月21日

    yum install perl-CGI

发表评论

电子邮件地址不会被公开。 必填项已用*标注

Scroll to top