安装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执行以上命令,安装成功即可。



轉載內容請註明出處: 轉載自V5.Net(原文:https://v5.net/CentOSApp/install-unixbench-hires.html