Tsung 源代码 Ubuntu的安装

因为 http://www.iteye.com/problems/77782

这个问题,所以需要重新编译Tsung,故下面写下编译Tsung的步骤

 安装步骤可参见

 http://tsung.erlang-projects.org/user_manual.html   里面的 installation


1 下载源代码

 安装git

     http://gitbook.liuhui998.com/index.html

 git clone git://git.process-one.net/tsung/mainline.git


2 编译源代码

   进入源文件目录

   sudo ./configure

  在此处  我的总是报

  bash: ./here1:/bin/sh^M:损坏的解释器: 没有该文件或目录“

 这样的错误 ,这是因为 configure 是dos格式的需要转为 unix 格式就好了

 判断一个文件是dos 格式方式

   a  vi  [filename]        如果是dos格式,在vi的最下一栏会显示[DOS]

    解决办法 选一个就OK

        a  dos2unix configure (把DOS 格式转为UNIX)

        b  perl -i -pe's/\r$//;' configure  (把DOS 格式转为UNIX也就是 去掉\r)

        参考链接

        http://www.linuxquestions.org/questions/linux-general-1/bad-interpreter-no-such-file-or-directory-213617/

       http://www.cnblogs.com/younes/archive/2010/06/05/1752123.html


  b   继续执行 configure ,可能会出现提示你找不到 erlang 无法进行编译

       安装erlang (这块没试,可能会有问题,但最终要求安装erlang )

       sudo apt-get install erlang-nox
       sudo apt-get -f install

  c   make

       在make 中,可能会出现 

        

make[1]: Entering directory `/home/lxwb/work/trunk/test/stress_test/tools/tsung-1.3.3/doc'

 

docbook2man tsung.1.sgml >/dev/null 2>&1

make[1]: *** [tsung.1] Error 127

make[1]: Leaving directory `/home/lxwb/work/trunk/test/stress_test/tools/tsung-1.3.3/doc'

make: *** [doc] Error 2


原因不明 , 用vi 打开 Makefile , 找到 $(MAKE) -C doc 这句 ,注释或者删掉就好了

链接:http://langzhe.iteye.com/blog/1163120#bc2239373


  d  make install

      执行 /usr/bin/tsung 还是报

          没有该文件或目录

        和第一个类型一样的错误,你知道该怎么解决了,呵呵

3 大功告成,爽爽的使用 Tsung吧


 



      


 

猜你喜欢

转载自beautyofprogram.iteye.com/blog/1342432
今日推荐