https://github.com/openstf/stf使用apt-get 命令安装相关应用[编辑]# apt-get update# apt-get install -y git# apt-get install -y lib32stdc++6# apt-get install -y yum# apt-get install -y build-essential# apt-get install -y android-tools-adb# apt-get install -y openjdk-8-jdk#apt-get install -y aapt安装相应的软件[编辑]软件列表:NodejsBowerGraphicsMagickLibsodiumZeromqProtobufRethinkdb(这个没有安装包)Nodejs安装[编辑]方法一: 解压tar.gz包#tar fvxz node-v5.10.0.tar.gz#cd node-v5.10.0#./configure#make#make install#ln -s /usr/local/bin/node /usr/bin/node#ln -s /usr/local/bin/npm /usr/bin/npm下载链接:文件:Node-v5.10.0.tar.zip方法二:# apt-get install npm# apt install nodejs-legacy检查是否正常安装#node -vUbuntu的node版本比较低,建议用第一种方法bower 安装[编辑]#npm install bower -g检查是否正常安装# bower -versionGraphicsMagick安装[编辑]# tar fvxz GraphicsMagick-1.3.24.tar.bz2# cd GraphicsMagick-1.3.24#./configure#make#make install检查是否正常安装#whereis gmroot@stf-test:~# whereis gmgm: /usr/local/bin/gm下载链接 文件:GraphicsMagick-1.3.24.tar.ziplibsodium安装[编辑]tar fvxz libsodium-1.0.8.tar.gzcd libsodium-1.0.8./configuremakemake install检查是否安装成功 使用命令whereis libsodium下载链接文件:Libsodium-1.0.9.tar.zipzeromq安装[编辑]# tar fvxz zeromq-4.1.4.tar.gz# cd zeromq-4.1.4#./configure# make# make install文件:Zeromq-4.2.0.tar.zipprotobuf安装[编辑]# tar fvxz protobuf-cpp-3.0.0-alpha-3.tar.gz#cd protobuf-cpp-3.0.0-alpha-3#./configure --prefix=/usr/local/protobuf# make# make install# vi /etc/profile/etc/profile配置在上面配置已经加上了,直接使用命令source /etc/profile就能生效#protoc --version文件:Protobuf-cpp-3.1.0.zip建议用apt-get的方法安装apt-get install protobuf-compilerpkg-config安装[编辑]#apt-get install pkg-configrethinkdb安装[编辑]# source /etc/lsb-release && echo "deb http://download.rethinkdb.com/apt xenial main" | sudo tee /etc/apt/sources.list.d/rethinkdb.list |wget -qO- http://download.rethinkdb.com/apt/pubkey.gpg | sudo apt-key add -(以上是一条命令,一定要把选择xenial 或者wily版本的rethink,不然后面启动STF时会报错)#apt-get update#apt-get install rethinkdbstf安装[编辑]使用git 命令下载master版本#git clone https://github.com/openstf/stf.git当然也可以下载stf的tgz包下来解压 进入stf目录,安装node_module的组件#npm install#npm link安装完成 检查是否能启动stf#rethinkdb &#stf local --public-ip= ip地址