rinald_未来往事

Can't locate ExtUtils/MakeMaker.pm OR Time/HiRes.pm in @INC解决方法

Linux
在编译安装mysqlsla遇到如下错误提示,该错误缺少依赖的包文件所致。解决方法如下:

错误提示一:
[root@monitor mysqlsla-2.03]# perl Makefile.PL   //perl脚本检查包依赖关系
Can't locate ExtUtils/MakeMaker.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 Makefile.PL line 2.
BEGIN failed--compilation aborted at Makefile.PL line 2.

缺少perl-ExtUtils-MakeMaker依赖包,安装即可

[root@localhost mysqlsla-2.03]# yum install perl-ExtUtils-MakeMaker perl-ExtUtils-CBuilder

错误提示二:
[root@monitor opt]# mysqlsla -lt slow2.log
Can't locate Time/HiRes.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/bin/mysqlsla line 2095.
BEGIN failed--compilation aborted at /usr/local/bin/mysqlsla line 2095.

缺少perl-Time-HiRes依赖包,安装即可

[root@monitor mysqlsla-2.03]# yum install perl-Time-HiRes  
原文作者:rinald
原文地址:http://fity.cn/post/319.html
互联网技术更新较快,本站很多文章具有实效性,我会及时更新原文,但转载的文章无法通知更新。为了不给读者造成困惑或误导,请您在转载时保留此出处信息,尊重别人也是尊重自己。

发表评论

必填

选填

选填

必填

◎欢迎参与讨论,请在这里发表您的看法、交流您的观点。