zl程序教程

您现在的位置是:首页 >  其他

当前栏目

tsung执行时报Can't locate Template.pm的解决

执行 解决 &# 39 can Template 时报 locate
2023-09-14 08:59:55 时间

[root@openfire-x86v-app01 20141118-0931]# tsung_stats 
creating subdirectory data 
creating subdirectory gnuplot_scripts 
creating subdirectory images 
warn, last interval (8) not equal to the first, use the first one (10)
No data for Bosh
No data for Match
No data for Event
Can't locate Template.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 /usr/bin/tsung_stats line 570.

安装下列软件包

[root@openfire-x86v-app0120141118-0931]# yum –y install perl-Template-Toolkit

问题解决

 

本文出自 “云人生” 博客,请务必保留此出处http://ovcer.blog.51cto.com/1145188/1579272

不过实际使用中发现用上面的方式也没有成功,原因是我的系统是centos6.8,安装时不需要-y这个参数。yum install perl-Template-Toolkit,问题解决,感谢原作者。

 如果还不行,那就把下面的组件也装上。

报错Can't locate ExtUtils/Embed.pm in @INC (@INC contains: /usr/local/lib64/perl5......

 

遇到这个问题时:

lxwb@client-6:~/.tsung/log/20110117-12:22$ /usr/local/lib/tsung/bin/tsung_stats.pl 
warn, last interval (3) not equal to the first, use the first one (10)
Error while running gnuplot: Inappropriate ioctl for device at /usr/local/lib/tsung/bin/tsung_stats.pl line 167.
No data for Perfs
Error while running gnuplot: Inappropriate ioctl for device at /usr/local/lib/tsung/bin/tsung_stats.pl line 167.
No data for Match
No data for Event
No data for Async
Error while running gnuplot: Inappropriate ioctl for device at /usr/local/lib/tsung/bin/tsung_stats.pl line 167.
Error while running gnuplot: Inappropriate ioctl for device at /usr/local/lib/tsung/bin/tsung_stats.pl line 167.
Error while running gnuplot: Inappropriate ioctl for device at /usr/local/lib/tsung/bin/tsung_stats.pl line 167.
No data for Size
Can't locate Template.pm in @INC (@INC contains: /etc/perl /usr/local/lib/perl/5.10.1 /usr/local/share/perl/5.10.1 /usr/lib/perl5 /usr/share/perl5 /usr/lib/perl/5.10 /usr/share/perl/5.10 /usr/local/lib/site_perl .) at /usr/local/lib/tsung/bin/tsung_stats.pl line 367.

需要安装下面的组件

yum install libtemplate-perl gnuplot

 

遇到host key verification failed

client需要用机器实例登陆,换成实例名称就好了。