安装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

“安装unixbench时报错: Can’t locate Time/HiRes.pm in”的一个回复

  1. [root@iZ28syytpj5Z ~]# yum install perl-Time-HiRes
    Loaded plugins: security
    Setting up Install Process
    Resolving Dependencies
    –> Running transaction check
    —> Package perl-Time-HiRes.i686 4:1.9721-136.el6 will be installed
    –> Finished Dependency Resolution

    Dependencies Resolved

    ================================================================================================================================
    Package Arch Version Repository Size
    ================================================================================================================================
    Installing:
    perl-Time-HiRes i686 4:1.9721-136.el6 base 48 k

    Transaction Summary
    ================================================================================================================================
    Install 1 Package(s)

    Total download size: 48 k
    Installed size: 52 k
    Is this ok [y/N]: y
    Downloading Packages:
    perl-Time-HiRes-1.9721-136.el6.i686.rpm | 48 kB 00:00
    Running rpm_check_debug
    Running Transaction Test
    Transaction Test Succeeded
    Running Transaction
    Warning: RPMDB altered outside of yum.
    Installing : 4:perl-Time-HiRes-1.9721-136.el6.i686 1/1
    Verifying : 4:perl-Time-HiRes-1.9721-136.el6.i686 1/1

    Installed:
    perl-Time-HiRes.i686 4:1.9721-136.el6

    Complete!

发表评论

电子邮件地址不会被公开。 必填项已用*标注

此站点使用Akismet来减少垃圾评论。了解我们如何处理您的评论数据