tsung生成报表时报错

[root@10-6-27-80 20141229-2327]# /usr/lib64/tsung/bin/tsung_stats.pl
Use of uninitialized value $version in pattern match (m//) at /usr/lib64/tsung/bin/tsung_stats.pl line 130.
warn, last interval (5) not equal to the first, use the first one (10)
Error while running gnuplot: 对设备不适当的 ioctl 操作 at /usr/lib64/tsung/bin/tsung_stats.pl line 255.
Error while running gnuplot: 对设备不适当的 ioctl 操作 at /usr/lib64/tsung/bin/tsung_stats.pl line 255.
No data for Bosh
Error while running gnuplot: 对设备不适当的 ioctl 操作 at /usr/lib64/tsung/bin/tsung_stats.pl line 255.
Error while running gnuplot: 对设备不适当的 ioctl 操作 at /usr/lib64/tsung/bin/tsung_stats.pl line 255.
No data for Match
No data for Event
No data for Async
No data for Errors
Error while running gnuplot: 对设备不适当的 ioctl 操作 at /usr/lib64/tsung/bin/tsung_stats.pl line 255.
Error while running gnuplot: 对设备不适当的 ioctl 操作 at /usr/lib64/tsung/bin/tsung_stats.pl line 255.
Error while running gnuplot: 对设备不适当的 ioctl 操作 at /usr/lib64/tsung/bin/tsung_stats.pl line 255.

上面是完整的报错,其实主要是这句

Error while running gnuplot: 对设备不适当的 ioctl 操作 at /usr/lib64/tsung/bin/tsung_stats.pl line 255.

也可能是这个样子的

Error while running gnuplot: Inappropriate ioctl for device at /usr/local/lib/tsung/bin/tsung_stats.pl line 255.

在百度上找了一圈,没有一个靠谱的答案,翻墙去谷歌,也没找到有用的信息。

首先判定肯定是gnuplot出的问题,但是很明显我的gnuplot已经安装。

最后尝试将自己make编译安装的gnuplot 版本卸载掉(定位到源码,然后执行make uninstall)然后使用centos自带的源安装后问题解决:

yum install gnuplot

报如下错误:

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/lib64/tsung/bin/tsung_stats.pl line 570.

解决方法:

yum install perl-ExtUtils-CBuilder perl-ExtUtils-MakeMaker

出现如下错误:

Starting Tsung
"Log directory is: /Applications/MAMP/htdocs/barebonessite/wp-   content/themes/barebones/./20130503-1325"
Config Error, aborting ! {{case_clause,{error,enoent}},
                      [{xmerl_scan,fetch_DTD,2,
                           [{file,"xmerl_scan.erl"},{line,1283}]},
                       {xmerl_scan,scan_doctype2,3,
                           [{file,"xmerl_scan.erl"},{line,1227}]},
                       {xmerl_scan,scan_prolog,4,
                           [{file,"xmerl_scan.erl"},{line,722}]},
                       {xmerl_scan,scan_document,2,
                           [{file,"xmerl_scan.erl"},{line,563}]},
                       {xmerl_scan,file,2,
                           [{file,"xmerl_scan.erl"},{line,249}]},
                       {ts_config,read,2,
                           [{file,"src/tsung_controller/ts_config.erl"},
                            {line,68}]},
                       {ts_config_server,handle_call,3,
                           [{file,
                                "src/tsung_controller/ts_config_server.erl"},
                            {line,198}]},
                       {gen_server,handle_msg,5,
                           [{file,"gen_server.erl"},{line,588}]}]}

一般是tsung.xml的脚步的tsung-1.0.dtd文件有问题或者是tsung.xml脚步中有没有闭合的标签

原文地址:https://www.cnblogs.com/jrsun/p/4192675.html