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
安装相应的软件[编辑]
软件列表:
Nodejs
Bower
GraphicsMagick
Libsodium
Zeromq
Protobuf
Rethinkdb(这个没有安装包)
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 -v
Ubuntu的node版本比较低,建议用第一种方法
bower 安装[编辑]
#npm install bower -g
检查是否正常安装
# bower -version
GraphicsMagick安装[编辑]
# tar fvxz GraphicsMagick-1.3.24.tar.bz2
# cd GraphicsMagick-1.3.24
#./configure
#make
#make install
检查是否正常安装
#whereis gm
root@stf-test:~# whereis gm
gm: /usr/local/bin/gm
下载链接 文件:GraphicsMagick-1.3.24.tar.zip
libsodium安装[编辑]
tar fvxz libsodium-1.0.8.tar.gz
cd libsodium-1.0.8
./configure
make
make install
检查是否安装成功 使用命令whereis libsodium
下载链接文件:Libsodium-1.0.9.tar.zip
zeromq安装[编辑]
# tar fvxz zeromq-4.1.4.tar.gz
# cd zeromq-4.1.4
#./configure
# make
# make install
文件:Zeromq-4.2.0.tar.zip
protobuf安装[编辑]
# 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-compiler
pkg-config安装[编辑]
#apt-get install pkg-config
rethinkdb安装[编辑]
# 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 rethinkdb
stf安装[编辑]
使用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地址