Tsung CentOS 操作系统下搭建tsung性能测试环境_Part 1
CentOS 操作系统下搭建tsung性能测试环境_Part 1
by:授客 QQ:1033553122
步骤1、下载软件安装包
CentOS-6.0-x86_64-bin-DVD1.iso
jdk-6u4-linux-x64-rpm.bin
erlang:
otp_src_17.1.tar.gz
下载地址:http://www.erlang.org/download.html
tsung
下载地址:http://tsung.erlang-projects.org/dist/
wxWidgets-3.0.1.tar.bz2:
下载地址:http://www.wxwidgets.org/downloads/
Template-toolkit
下载地址:http://template-toolkit.org/download/index.html#debian
Gnuplot-4.0.0.tar.gz
下载地址:http://superb-dca2.dl.sourceforge.net/project/gnuplot/gnuplot/4.0.0/gnuplot-4.0.0.tar.gz
以上除了CentOS外也可通过我的分享连接进入下载
http://pan.baidu.com/s/1kTqmYWn
步骤2、安装erlang
[root@localhost software]#
tar -xzvf otp_src_17.1.tar.gz
[root@localhost software]#
cd otp_src_17.1
#配置erlang软件安装环境
[root@localhost
otp_src_17.1]# ./configure --prefix=/usr/local/erlang
...
checking for cl...
no
configure:
error: no acceptable C compiler found in $PATH
See `config.log' for more
details.
#如上,提示错误,解决方法:安装C编译器gcc
[root@localhost
otp_src_17.1]# mount /dev/cdrom /mnt
[root@localhost
otp_src_17.1]# cd /etc/yum.repos.d/
[root@localhost
yum.repos.d]# ls
CentOS-Base.repo
CentOS-Debuginfo.repo
CentOS-Media.repo
[root@localhost
yum.repos.d]# vi local.repo #输入以下内容后保存
[centos]
name=centos
baseurl=file:///mnt
gpgcheck=0
enabled=1
[root@localhost
yum.repos.d]# mkdir bak
[root@localhost
yum.repos.d]# ls
bak
CentOS-Base.repo
CentOS-Debuginfo.repo
CentOS-Media.repo local.repo
[root@localhost
yum.repos.d]# mv CentOS*.* bak
[root@localhost
yum.repos.d]# yum clean all
Loaded plugins:
fastestmirror
Cleaning up
Everything
[root@localhost
yum.repos.d]# yum update
#安装前先查找是否存在对应软件包,往后就不再赘述
[root@localhost
yum.repos.d]# yum list | grep gcc
...
[root@localhost
yum.repos.d]# yum install gcc
#继续配置erlang软件安装环境
[root@localhost ~]# cd
./software/otp_src_17.1
[root@localhost
otp_src_17.1]# ./configure --prefix=/usr/local/erlang
...
configure:
error: GNU make is required!
#如上,提示错误,解决方法:安装make
[root@localhost
otp_src_17.1]# yum install make
#继续配置erlang软件安装环境
[root@localhost
otp_src_17.1]# ./configure --prefix=/usr/local/erlang
...
checking for perl...
no_perl
configure:
error: Perl is required to generate v2 to v1 mib converter
script
configure:
error: /bin/sh '/root/software/otp_src_17.1/lib/snmp/./configure'
failed for snmp/.
configure:
error: /bin/sh '/root/software/otp_src_17.1/lib/configure' failed
for lib
#如上,提示错误,解决方法:安装Perl
[root@localhost
otp_src_17.1]# yum install perl
#继续配置erlang的安装环境
[root@localhost
otp_src_17.1]# ./configure --prefix=/usr/local/erlang
...
configure:
error: No curses library functions found
configure:
error: /bin/sh '/root/software/otp_src_17.1/erts/configure' failed
for erts
#如上,提示错误,解决方法:安装curese类库
[root@localhost
otp_src_17.1]# yum install ncurses
...
#提示已经安装,解决方法:安装开发版
[root@localhost
otp_src_17.1]# yum install ncurses-devel
#继续配置erlang的安装环境
[root@localhost
otp_src_17.1]# ./configure --prefix=/usr/local/erlang
...
**********************
APPLICATIONS DISABLED
**********************
*********************************************************************
crypto
: No usable OpenSSL found
jinterface
: No Java compiler found
odbc
:
ODBC library - link check failed
orber
: No C++ compiler found
ssh
: No usable OpenSSL found
ssl
: No usable OpenSSL found
*********************************************************************
*********************************************************************
**********************
APPLICATIONS INFORMATION
*******************
*********************************************************************
wx
: wxWidgets not found, wx will NOT be usable
*********************************************************************
*********************************************************************
**********************
DOCUMENTATION INFORMATION
******************
*********************************************************************
documentation
:
xsltproc is missing.
fop is missing.
The documentation can not be built.
#如上,提示错误,解决方法:安装OpenSSL
[root@localhost
otp_src_17.1]# yum install openssl
...
Package
openssl-1.0.0-4.el6.x86_64 already installed and latest
version
Nothing to do
#提示已经安装,解决方法:安装devel版
[root@localhost
otp_src_17.1]# yum install openssl-devel
#继续配置erlang的安装环境
[root@localhost
otp_src_17.1]# ./configure --prefix=/usr/local/erlang
...
**********************
APPLICATIONS DISABLED
**********************
*********************************************************************
jinterface
: No Java compiler found
odbc
: ODBC library - link check failed
orber
: No C++ compiler found
*********************************************************************
*********************************************************************
**********************
APPLICATIONS INFORMATION
*******************
*********************************************************************
wx
: wxWidgets not found, wx will NOT be usable
*********************************************************************
*********************************************************************
**********************
DOCUMENTATION INFORMATION
******************
*********************************************************************
documentation
:
xsltproc is missing.
fop is missing.
The documentation can not be built.
#如上,提示错误,解决方法:安装unixODBC库
[root@localhost
otp_src_17.1]# yum install unixODBC
#继续配置erlang的安装环境
[root@localhost
otp_src_17.1]# ./configure --prefix=/usr/local/erlang
--without–javac
...
**********************
APPLICATIONS DISABLED
**********************
*********************************************************************
jinterface
: Java compiler disabled by user
odbc
: ODBC library - link check failed
orber
: No C++ compiler found
*********************************************************************
*********************************************************************
**********************
APPLICATIONS INFORMATION
*******************
*********************************************************************
wx
: wxWidgets not found, wx will NOT be usable
*********************************************************************
*********************************************************************
**********************
DOCUMENTATION INFORMATION
******************
*********************************************************************
documentation :
xsltproc is missing.
fop is missing.
The documentation can not be built.
#如上,提示错误依旧,解决方法:安装devel版
[root@localhost
otp_src_17.1]# yum install unixODBC-devel
#继续配置erlang安装环境
[root@localhost
otp_src_17.1]# ./configure --prefix=/usr/local/erlang
--without–javac
*********************************************************************
**********************
APPLICATIONS DISABLED
**********************
*********************************************************************
jinterface
: Java compiler disabled by user
orber
: No C++ compiler found
*********************************************************************
*********************************************************************
**********************
APPLICATIONS INFORMATION
*******************
*********************************************************************
wx
: wxWidgets not found, wx will NOT be usable
*********************************************************************
*********************************************************************
**********************
DOCUMENTATION INFORMATION
******************
*********************************************************************
documentation
:
xsltproc is missing.
fop is missing.
The documentation can not be built.
#如上,提示错误,解决方法:安装gcc-c++编译器
[root@localhost
otp_src_17.1]# yum install gcc-c++
#继续配置erlang的安装环境
[root@localhost
otp_src_17.1]# ./configure --prefix=/usr/local/erlang
-disable-javac
...
config.status:
include/x86_64-unknown-linux-gnu/erl_native_features_config.h is
unchanged
*********************************************************************
**********************
APPLICATIONS DISABLED
**********************
*********************************************************************
jinterface
: No Java compiler found
*********************************************************************
*********************************************************************
**********************
APPLICATIONS INFORMATION
*******************
*********************************************************************
wx
: wxWidgets not found, wx will NOT be usable
*********************************************************************
*********************************************************************
**********************
DOCUMENTATION INFORMATION
******************
*********************************************************************
documentation
:
xsltproc is missing.
fop is missing.
The documentation can not be built.
#如上,提示错误,解决方法:安装wxWidgets(iso安装包中没有,需要下载)
[root@localhost software]#
bzip2 -d wxWidgets-3.0.1.tar.bz2
[root@localhost software]#
tar -xvf wxWidgets-3.0.1.tar
[root@localhost software]#
cd wxWidgets-3.0.1
#注意:-enable-unicode选项不能少
[root@localhost
wxWidgets-3.0.1]# ./configure -enable-unicode
...
configure:
error:
The development
files for GTK+ were not found. For GTK+ 2, please
ensure that
pkg-config is in the path and that gtk+-2.0.pc is
installed. For
GTK+ 1.2 please check that gtk-config is in the path,
and that the
version is 1.2.3 or above. Also check that the
libraries
returned by 'pkg-config gtk+-2.0 --libs' or 'gtk-config
--libs' are in
the LD_LIBRARY_PATH or equivalent.
#如上,提示错误,解决方法:安装GTK+
[root@localhost
otp_src_17.1]# yum install gtk2-devel
#继续配置wxWidgets安装环境(注意:-enable-unicode选项不能少)
[root@localhost
wxWidgets-3.0.1]# ./configure --with-opengl
-enable-unicode -enable-debug
...
configure:
WARNING: libSM not found; disabling session management
detection
checking for
OpenGL headers... not found
checking for
GL/gl.h... no
configure:
error: OpenGL libraries not available
#如上,提示错误,安装pengl(iso没自带,据网上说的,安装opengl相关类库(mesa))
[root@localhost
otp_src_17.1]# yum install
mesa-libGL-devel
#再次配置wxWidgets的安装环境
[root@localhost
wxWidgets-3.0.1]# ./configure --with-opengl
-enable-unicode
...
checking for OpenGL
headers... not found
checking for GL/gl.h...
no
configure: error: OpenGL
libraries not available
#如上,提示错误,解决方法:继续安装其它版本的mesa
[root@localhost
otp_src_17.1]# yum install mesa-libGLU-devel
#安装wxWidgets
[root@localhost
wxWidgets-3.0.1]# make && make install
#继续配置erlang的安装环境
[root@localhost
otp_src_17.1]# ./configure --prefix=/usr/local/erlang
-disable-javac
*********************************************************************
**********************
APPLICATIONS DISABLED
**********************
*********************************************************************
jinterface
: No Java compiler found
*********************************************************************
*********************************************************************
**********************
DOCUMENTATION INFORMATION
******************
*********************************************************************
documentation
:
fop is missing.
Using fakefop to generate placeholder PDF files.
#如上,提示错误,解决方法:安装java
jdk
[root@localhost software]#
ls
jdk-6u13-linux-i586.bin
jdk-6u13-linux-i586.zip
otp_src_17.1
otp_src_17.1.tar.gz
wxWidgets-3.0.1
wxWidgets-3.0.1.tar
[root@localhost software]#
mkdir -p /usr/local/java
[root@localhost software]#
mv jdk-6u13-linux-i586.bin /usr/local/java
[root@localhost software]#
cd /usr/local/java/
[root@localhost java]#
ls
jdk-6u13-linux-i586.bin
[root@localhost
java]# chmod 777 jdk-6u13-linux-i586.bin
[root@localhost java]#
./jdk-6u13-linux-i586.bin
...
./jdk-6u13-linux-i586.bin:
./install.sfx.5278: /lib/ld-linux.so.2: bad ELF interpreter: No
such file or directory
Failed to
extract the files. Please refer to the
Troubleshooting section of
the Installation
Instructions on the download page for more information.
#如上,提示错误,解决方法:安装64位的jdk
[root@localhost java]#
chmod 777 jdk-6u4-linux-x64-rpm.bin
[root@localhost java]#
./jdk-6u4-linux-x64-rpm.bin
[root@localhost java]#
export JAVA_HOME=/usr/local/java
[root@localhost java]#
ls
jdk-6u4-linux-amd64.rpm
sun-javadb-common-10.3.1-4.1.i386.rpm
sun-javadb-docs-10.3.1-4.1.i386.rpm
jdk-6u4-linux-x64-rpm.bin
sun-javadb-core-10.3.1-4.1.i386.rpm
sun-javadb-javadoc-10.3.1-4.1.i386.rpm
sun-javadb-client-10.3.1-4.1.i386.rpm
sun-javadb-demo-10.3.1-4.1.i386.rpm
[root@localhost java]# rpm
-ivh jdk-6u4-linux-amd64.rpm
[root@localhost java]# find
/ -name dt.jar
/usr/java/jdk1.6.0_04/lib/dt.jar
[root@localhost java]#
export JAVA_HOME=/usr/java/jdk1.6.0_04
[root@localhost java]#
export JRE_HOME=/usr/java/jdk1.6.0_04/jre
[root@localhost lib]#
export CLASSPATH=.;$JAVA_HOME/lib/dt.jar;$JAVA_HOEM/lib/tools.jar;
-bash:
/usr/java/jdk1.6.0_04/lib/dt.jar: Permission denied
-bash:
/lib/tools.jar: No such file or directory
#如上,提示错误,解决方法:更改权限,更改字符
[root@localhost lib]# chmod
777 /usr/java/jdk1.6.0_04/lib/dt.jar
[root@localhost lib]# chmod
777 /usr/java/jdk1.6.0_04/lib/tools.jar
[root@localhost lib]# vi
/etc/profile


[root@localhost lib]# source /etc/profile
#继续配置erlang的安装环境
[root@localhost
otp_src_17.1]# ./configure --prefix=/usr/local/erlang
...
**********************
DOCUMENTATION INFORMATION
******************
*********************************************************************
documentation
:
fop is missing.
Using fakefop to generate placeholder PDF files.
#如上,提示错误,解决方法:安装fop
[root@localhost
otp_src_17.1]# yum install fop
#继续配置erlang的安装环境
[root@localhost
otp_src_17.1]# ./configure --prefix=/usr/local/erlang
#安装
[root@localhost
otp_src_17.1]# make && make install
#配置环境变量
[root@localhost lib]# vi
/etc/profile


[root@localhost lib]#
source /etc/profile
#确认是否安装成功
[root@localhost
otp_src_17.1]# erl -version
Erlang
(SMP,ASYNC_THREADS,HIPE) (BEAM) emulator version 6.1
步骤3、安装tsung
[root@localhost software]#
tar -xvf tsung-1.5.1.tar.gz
[root@localhost software]#
cd tsung-1.5.1
[root@localhost
tsung-1.5.1]# ./configure --prefix=/usr/local/tsung
--with-erlang=/usr/local/erlang
[root@localhost
tsung-1.5.1]# make && make install
#配置环境变量
[root@localhost
tsung-1.5.1]# vi /etc/profile


[root@localhost tsung-1.5.1]# source /etc/profile
#确认是否安装成功
[root@localhost
tsung-1.5.1]# tsung -v
-bash: tsung: command not
found
[root@localhost
tsung-1.5.1]# find / -name tsung
/usr/local/tsung
/usr/local/tsung/bin/tsung
/usr/local/tsung/lib/tsung
/usr/local/tsung/share/doc/tsung
/usr/local/tsung/share/tsung
/root/software/tsung-1.5.1/src/tsung-plotter/tsung
/root/software/tsung-1.5.1/src/tsung

[root@localhost
tsung-1.5.1]# tsung -v
Tsung version
1.5.1
步骤4、#安装perl的Template
Toolkit
[root@localhost software]#
tar -xvf Template-Toolkit-2.25.tar.gz
[root@localhost software]#
cd Template-Toolkit-2.25
[root@localhost
Template-Toolkit-2.25]# ls
bin Changes HACKING images INSTALL lib
Makefile.PL
MANIFEST
META.json
META.yml
parser
README
t
TODO
xs
[root@localhost
Template-Toolkit-2.25]# perl Makefile.PL
Can't locate
ExtUtils/MakeMaker.pm in @INC (@INC contains: ./lib
/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 Makefile.PL line
11.
BEGIN failed--compilation
aborted at Makefile.PL line 11.
#如上,提示错误,解决方法:安装perl-ExtUtils-MakeMaker
[root@localhost
otp_src_17.1]# yum install perl-ExtUtils-MakeMaker
#继续安装Template
Toolkit
[root@localhost
Template-Toolkit-2.25]# perl Makefile.PL
[root@localhost
Template-Toolkit-2.25]# make
[root@localhost
Template-Toolkit-2.25]# make test
...
t/pod.t
............... skipped: Pod::POM not installed
...
t/zz-pmv.t
............ Can't locate Test/More.pm in @INC (@INC contains:
/root/software/Template-Toolkit-2.25/blib/lib
/root/software/Template-Toolkit-2.25/blib/arch
/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
...
Test Summary
Report
-------------------
t/unicode.t
(Wstat: 512 Tests: 0 Failed: 0)
Non-zero exit status:
2
Parse errors: No plan
found in TAP output
t/zz-pmv.t
(Wstat: 512 Tests: 0 Failed: 0)
Non-zero exit status:
2
...
Parse errors: No plan
found in TAP output
Files=89,
Tests=2787, 17 wallclock secs ( 0.23 usr 0.14 sys + 4.94 cusr 0.95 csys
= 6.26
CPU)
Result:
FAIL
Failed 5/89 test
programs. 0/2787 subtests failed.
make: ***
[test_dynamic] Error 2
Tsung CentOS 操作系统下搭建tsung性能测试环境_Part 1的更多相关文章
- Tsung CentOS 操作系统下搭建tsung性能测试环境_Part 2
CentOS 操作系统下搭建tsung性能测试环境_Part 2 by:授客 QQ:1033553122 --------------------接CentOS 操作系统下搭建tsung性能测试环境_ ...
- 在CentOS下搭建Android 开发环境
在CentOS下搭建Android 开发环境 目录 1.环境搭建 1.1.JDK安装 1.2.Eclipse安装 1.3.ADT安装 1.4.Android SDK安装 1.5.Android NDK ...
- Windows操作系统下搭建Git服务器和客户端。
本文将介绍如何在Windows操作系统下搭建Git服务器和客户端.服务器端采用的是Bonobo Git Server,一款用ASP.NET MVC开发的Git源代码管理工具,界面简洁,基于Web方式配 ...
- Centos 7 下搭建 Dokuwiki
Centos 7 下搭建 Dokuwiki # Dokuwiki 是php的,所以要先搭建php环境,下载 apache和php,第1.2步下载完,相关的依赖都会下载## 1.下载 httpdyum ...
- Window下搭建foundation apps环境
Window下搭建foundation apps环境 框架:AngularJS.Foundation, 构建工具:Gulp, 开发环境:node.js. 操作系统:windows (一)环境准备 1 ...
- mac os 下搭建android开发环境
mac os 下搭建android开发环境 周银辉 mac os 下搭建android环境比较方便, 如下几个步骤: 1,安装jdk 先搞清楚自己是否已经安装,在命令行下:java -version, ...
- Mac下搭建php开发环境教程
方案一:原生安装 这篇文章主要介绍了Mac下搭建php开发环境教程,Mac OS X 内置了Apache 和 PHP,这样使用起来非常方便.本文以Mac OS X 10.6.3为例,需要的朋友可以参考 ...
- 【原创】windows下搭建vue开发环境+IIS部署
[原创]win10下搭建vue开发环境 如果要转发,请注明原作者和原产地,谢谢! 特别说明:下面任何命令都是在windows的命令行工具下进行输入,打开命令行工具的快捷方式如下图: 详细的安 ...
- Windows下搭建Git开发环境
Windows下搭建Git开发环境主要有以下三种方法: 1,VS,vs2013和vs2015中已经集成了git插件了 2,msysGit+TortoiseGit 3,msysGit+SourceTre ...
随机推荐
- Android开发工程师文集-1 小时学会Widget小组件开发
前言 大家好,给大家带来Android开发工程师文集-1 小时学会Widget小组件开发的概述,希望你们喜欢 学会用Widget (小组件) Widget小组件很方便,很快捷,可以个性化,自己定制,相 ...
- java8 parallel并行处理实战
需求 我需要做一个人员某几项数据的统计,由于数据量较大,不能一次性加载到内存进行统计.所以采用了遍历每个用户.当然也可以分配处理. 分析需求可得知,每个用户其实互不相关,数据的统计可以同步进行,因此考 ...
- 《机器学习实战(基于scikit-learn和TensorFlow)》第二章内容的学习心得
请支持正版图书, 购买链接 下方内容里面很多链接需要我们***,请大家自备梯子,实在不会再请留言,节约彼此时间. 源码在底部,请自行获取,谢谢! 当开始着手进行一个端到端的机器学习项目,大致需要以下几 ...
- Qt之使用CQU库快速开发统一风格界面
在使用Qt开发时,肯定是想让开发的项目界面统一风格:不希望每个界面都要程序员用代码去修饰美化以及进行事件处理等等,这样非常繁琐,容易出错而且没有格调:所以我就开发一个动态链接库,封装统一的风格界面.事 ...
- python绘图工具matplotlib在linux下安装和使用
工具介绍:matplotlib 是Python编程语言的一个绘图库及其数值数学扩展 NumPy.它为利用通用的图形用户界面工具包, 如Tkinter, wxPython, Qt或GTK+向应用程序嵌入 ...
- Java 10 实战第 1 篇:局部变量类型推断
现在 Java 9 被遗弃了直接升级到了 Java 10,之前也发过 Java 10 新特性的文章,现在是开始实战 Java 10 的时候了. 今天要实战的是 Java 10 中最重要的特性:局部变量 ...
- Webpack代理proxy配置,解决本地跨域调试问题,同时允许绑定host域名调试
Webpack代理proxy配置,解决本地跨域调试问题,同时允许绑定host域名调试 会撸码的小马 关注 2018.05.29 17:30* 字数 212 阅读 1488评论 0喜欢 2 接到上一章, ...
- Rsync文件同步工具
前段时间因公司需求,需要把备份的文件进行同步保存,后面就想到了我们大家都最熟悉的文件同步工作Rsync,于是就捣鼓了一下午时间,然后总结了下大概过程和参数详情. 首先了解了下rsync同步的大致原理: ...
- 手把手教您定制化Centos6.x安装界面
1.获取安装界面代码 挂载image/install.img:mount image/install.img /mnt/5 -o loop 复制挂载后的代码至self_intall ...
- Create and Embed an Application Manifest (UAC)
http://msdn.microsoft.com/en-us/library/bb756929.aspx 可以在VS2008中设置当执行exe时弹出提升管理员权限对话框:xx Property-&g ...