Can't locate ExtUtils/MakeMaker.pm OR Time/HiRes.pm in @INC解决方法
在编译安装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
本文作者:未来往事
本站使用「署名 4.0 国际」创作共享协议,可自由转载、引用,但需署名作者且注明文章出处
此处评论已关闭