CentOS 操作系统下搭建tsung性能测试环境_Part 1

by:授客 QQ1033553122

步骤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/

以上除了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

#如上,提示错误,安装pengliso没自带,据网上说的,安装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#安装perlTemplate
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 

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的更多相关文章

  1. Tsung CentOS 操作系统下搭建tsung性能测试环境_Part 2

    CentOS 操作系统下搭建tsung性能测试环境_Part 2 by:授客 QQ:1033553122 --------------------接CentOS 操作系统下搭建tsung性能测试环境_ ...

  2. 在CentOS下搭建Android 开发环境

    在CentOS下搭建Android 开发环境 目录 1.环境搭建 1.1.JDK安装 1.2.Eclipse安装 1.3.ADT安装 1.4.Android SDK安装 1.5.Android NDK ...

  3. Windows操作系统下搭建Git服务器和客户端。

    本文将介绍如何在Windows操作系统下搭建Git服务器和客户端.服务器端采用的是Bonobo Git Server,一款用ASP.NET MVC开发的Git源代码管理工具,界面简洁,基于Web方式配 ...

  4. Centos 7 下搭建 Dokuwiki

    Centos 7 下搭建 Dokuwiki # Dokuwiki 是php的,所以要先搭建php环境,下载 apache和php,第1.2步下载完,相关的依赖都会下载## 1.下载 httpdyum ...

  5. Window下搭建foundation apps环境

    Window下搭建foundation apps环境 框架:AngularJS.Foundation, 构建工具:Gulp, 开发环境:node.js. 操作系统:windows (一)环境准备 1 ...

  6. mac os 下搭建android开发环境

    mac os 下搭建android开发环境 周银辉 mac os 下搭建android环境比较方便, 如下几个步骤: 1,安装jdk 先搞清楚自己是否已经安装,在命令行下:java -version, ...

  7. Mac下搭建php开发环境教程

    方案一:原生安装 这篇文章主要介绍了Mac下搭建php开发环境教程,Mac OS X 内置了Apache 和 PHP,这样使用起来非常方便.本文以Mac OS X 10.6.3为例,需要的朋友可以参考 ...

  8. 【原创】windows下搭建vue开发环境+IIS部署

    [原创]win10下搭建vue开发环境  如果要转发,请注明原作者和原产地,谢谢! 特别说明:下面任何命令都是在windows的命令行工具下进行输入,打开命令行工具的快捷方式如下图:     详细的安 ...

  9. Windows下搭建Git开发环境

    Windows下搭建Git开发环境主要有以下三种方法: 1,VS,vs2013和vs2015中已经集成了git插件了 2,msysGit+TortoiseGit 3,msysGit+SourceTre ...

随机推荐

  1. 仿B站项目——(1)计划,前端工程

    计划 现打算: 计划用webpack打包 + 模板语言 + jquery + jquery ui + bootstrap做一个仿B站的静态网站. 网站兼容手机浏览器端. 部分模块打算仿照SPA用js加 ...

  2. vscode 集成 cygwin 的注意事项

    vscode 集成 cygwin vscode 现在是我的主力开发编辑器,它自带 terminal 不需要我各种切换,我还想要在 windows 下执行一些简单的 .sh 文件.所以,我希望有一款工具 ...

  3. 写一个shell 快速启动停止你的微服务吧

    在这个微服务盛行的时代,docker获得了巨大的成功,因为我们需要在一台服务器装上N个服务. 本文不是想讨论如何使用docker,而是,在一台服务器安装了多个服务后,怎样启动方便的启动服务呢? 一.在 ...

  4. ElasticSearch权威指南学习(分布式集群)

    空集群 只有一个空节点的集群 一个节点(node)就是一个Elasticsearch实例,而一个集群(cluster)由一个或多个节点组成,它们具有相同的cluster.name,它们协同工作,分享数 ...

  5. Linux - 多窗口管理器Screen程序

    GNU's Screen homepage Screen是由GNU计划开发的用于命令行终端切换的自由软件,可以看作是窗口管理器的命令行界面版本. 可以通过该软件同时连接多个本地或远程的命令行会话,并在 ...

  6. HoloLens开发手记-开发概述Development overview

    开发HoloLens全息应用将使用UWP平台(Universal Windows Platform),所有的HoloLens应用都是Win10通用应用,所有UWP通用应用都可以在HoloLens上运行 ...

  7. python爬取微信信息--显示性别/地域/词云(附代码)

    看到一篇有意思的博客 利用微信开放的接口itchat 可以获取登录的微信好友信息 并且利用图像工具显示分析结果 非常的有意思 记录下实现过程 并提供可执行代码 首先要 import itchat 库 ...

  8. 剑指offer【01】- 二维数组中的查找(Java)

    在经历了春招各大公司的笔试题和面试官的血虐之后,决定要刷一些算法题了,不然连面试机会都没有. 而应对笔试和面试,比较出名的就是剑指offer的题目和LeetCode的题目了.剑指offer应对面试中的 ...

  9. web自动化测试---自动化脚本设置百度搜索每页显示条数

    前面学的都是基础知识,本篇将进入实战练习 以百度“搜索设置”为对象进行测试用例的写作: 百度的搜索设置在首页的“设置”里面,鼠标悬停之后即可显示,如下图红框位置: 测试目标是,修改每页的显示条数为50 ...

  10. jQuery事件委托

    jQuery事件委托 <ul id="ulBox"> <li data-id="1"></li> <li data-i ...