安装unixbench时报错: Can't locate Time/HiRes.pm in

# 安装测试工具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.

# 解决方案:

错误提示Can’t locate,猜测可能是HiRes.pm没有安装,或者是路径配置问题

locate HiRes.pm  # 发现没有,确定应该是没有安装

网上查找答案:

.pm实际上是Perl的包,只需安装如下软件包即可:

yum install perl-Time-HiRes

 

转自:http://nayan115.blog.sohu.com/248921862.html