主页 > 知识库 > 解决Can't locate ExtUtils/MakeMaker.pm in @INC报错

解决Can't locate ExtUtils/MakeMaker.pm in @INC报错

热门标签:百度竞价排名 AI电销 地方门户网站 呼叫中心市场需求 网站排名优化 服务外包 铁路电话系统 Linux服务器

在安装mha4mysql时,大概步骤是:解压,perl Makefile.PL,make, make install。在执行 perl Makefile.PL 报错如下,简单记录一下解决方法

# perl Makefile.PL
Can't locate ExtUtils/MakeMaker.pm in @INC (@INC contains: inc /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 inc/Module/Install/Can.pm line 5.
BEGIN failed--compilation aborted at inc/Module/Install/Can.pm line 5.
Compilation failed in require at inc/Module/Install.pm line 307.
Can't locate ExtUtils/MakeMaker.pm in @INC (@INC contains: inc /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 inc/Module/Install/Makefile.pm line 4.
BEGIN failed--compilation aborted at inc/Module/Install/Makefile.pm line 4.
Compilation failed in require at inc/Module/Install.pm line 307.
Can't locate ExtUtils/MM_Unix.pm in @INC (@INC contains: inc /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 inc/Module/Install/Metadata.pm line 322.

安装依赖

yum install perl-ExtUtils-MakeMaker

继续报错

# perl Makefile.PL
*** Module::AutoInstall version 1.06
*** Checking for Perl dependencies...
Can't locate CPAN.pm in @INC (@INC contains: inc /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 inc/Module/AutoInstall.pm line 304.

yum -y install perl-CPAN

总结

以上就是这篇文章的全部内容了,希望本文的内容对大家的学习或者工作具有一定的参考学习价值,谢谢大家对脚本之家的支持。如果你想了解更多相关内容请查看下面相关链接

您可能感兴趣的文章:
  • MySQL left join操作中on和where放置条件的区别介绍
  • SQL语句执行深入讲解(MySQL架构总览->查询执行流程->SQL解析顺序)
  • Mysql InnoDB引擎的索引与存储结构详解
  • PHP的mysqli_thread_id()函数讲解
  • PHP的mysqli_stmt_init()函数讲解
  • PHP的mysqli_stat()函数讲解
  • PHP的mysqli_ssl_set()函数讲解
  • PHP的mysqli_sqlstate()函数讲解
  • PHP的mysqli_set_charset()函数讲解
  • PHP的mysqli_select_db()函数讲解

标签:湘潭 崇左 铜川 湖南 黄山 仙桃 兰州 衡水

巨人网络通讯声明:本文标题《解决Can't locate ExtUtils/MakeMaker.pm in @INC报错》,本文关键词  ;如发现本文内容存在版权问题,烦请提供相关信息告之我们,我们将及时沟通与处理。本站内容系统采集于网络,涉及言论、版权与本站无关。
  • 相关文章
  • 收缩
    • 微信客服
    • 微信二维码
    • 电话咨询

    • 400-1100-266