> CentOS > CentOS故障 >

安装unixbench提示: Can't locate Time/HiRes.pm解决方法

UnixBench是Linux下一款不错的测试工具,若安装unixbench工具时提示以下错误:

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 ./Run line 6. BEGIN failed--compilation aborted at ./Run line 6.

可能系统缺少“HiRes.pm”组件,或程序路径问题。

解决方法如下:


“.pm”实际上是Perl的包,只需安装对应的软件包


yum install perl-Time-HiRes

SSH执行以上命令,安装成功即可。

(责任编辑:IT)