I try to run UnixBench in one of the OpenVZ VPS with CentOS 6 64bit, and having error like this :
1 2 |
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. |
To solve it, I try to run the following command to install required module in Perl
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 |
# yum install perl-Time-HiRes Loaded plugins: fastestmirror Loading mirror speeds from cached hostfile * base: dallas.tx.mirror.xygenhosting.com * extras: mirrors.serveraxis.net * updates: mirror.raystedman.net Setting up Install Process Resolving Dependencies --> Running transaction check ---> Package perl-Time-HiRes.x86_64 4:1.9721-127.el6 will be installed --> Finished Dependency Resolution Dependencies Resolved ============================================================================================================================================================= Package Arch Version Repository Size ============================================================================================================================================================= Installing: perl-Time-HiRes x86_64 4:1.9721-127.el6 base 47 k Transaction Summary ============================================================================================================================================================= Install 1 Package(s) Total download size: 47 k Installed size: 56 k Is this ok [y/N]: y Downloading Packages: perl-Time-HiRes-1.9721-127.el6.x86_64.rpm | 47 kB 00:00 Running rpm_check_debug Running Transaction Test Transaction Test Succeeded Running Transaction Installing : 4:perl-Time-HiRes-1.9721-127.el6.x86_64 1/1 Verifying : 4:perl-Time-HiRes-1.9721-127.el6.x86_64 1/1 Installed: perl-Time-HiRes.x86_64 4:1.9721-127.el6 Complete! |
And problem fixed 🙂