在使用memcache-top监控memcache的时候执行报错,记录解决过程:
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. |
- perl -MCPAN -e 'install Time::HiRes'
- yum install perl-devel perl-CPAN
- perl -MCPAN -e shell
- cpan[2]> install Time::HiRes
- cpan[3]> exit
- [root@localhost ~]# perl memcache-top-v0.6 --instances=192.168.5.73:11211