Scroll untuk baca artikel
LinuxTips & TricksTutorial

Solution Can not locate Time / HiRes.pm in @INC

305
×

Solution Can not locate Time / HiRes.pm in @INC

Sebarkan artikel ini
tutorial
tutorial

Maybe because before I run UnixBench on Debian 7 and Ubuntu 14.04 so do not know if in CentOS 6 when executed even error message appears:

Can't locate Time/HiRes.pm in @INC (@INC contains: /usr/local/lib/perl5 /usr/local/share/perl5 /usr/lib/perl5/vendor_perl /usr/share/perl5/vendor_perl /usr/lib/perl5 /usr/share/perl5 .) at ./Run line 6.
BEGIN failed--compilation aborted at ./Run line 6.

Yes, somewhat confused also the lack of what but from the description there seems to be less than the Perl package is installed. After I find out that the Time / HiRes.pm file being searched is a Perl module named Time :: HiRes and it functions to add usleep, ualarm, gettimeofday, and other time calculations that are more precise than the standard. How to fix it? Fortunately it is very easy, in CentOS just run the following command:

yum install perl-Time-HiRes

Done, and I successfully run the benchmark script earlier. Just waiting for the results only.

Tinggalkan Balasan

Alamat email Anda tidak akan dipublikasikan. Ruas yang wajib ditandai *

Situs ini menggunakan Akismet untuk mengurangi spam. Pelajari bagaimana data komentar Anda diproses.

Verified by MonsterInsights