1. https://github.com/openstf/stf
    2. 使用apt-get 命令安装相关应用[编辑]
    3. # apt-get update
    4. # apt-get install -y git
    5. # apt-get install -y lib32stdc++6
    6. # apt-get install -y yum
    7. # apt-get install -y build-essential
    8. # apt-get install -y android-tools-adb
    9. # apt-get install -y openjdk-8-jdk
    10. #apt-get install -y aapt
    11. 安装相应的软件[编辑]
    12. 软件列表:
    13. Nodejs
    14. Bower
    15. GraphicsMagick
    16. Libsodium
    17. Zeromq
    18. Protobuf
    19. Rethinkdb(这个没有安装包)
    20. Nodejs安装[编辑]
    21. 方法一: 解压tar.gz
    22. #tar fvxz node-v5.10.0.tar.gz
    23. #cd node-v5.10.0
    24. #./configure
    25. #make
    26. #make install
    27. #ln -s /usr/local/bin/node /usr/bin/node
    28. #ln -s /usr/local/bin/npm /usr/bin/npm
    29. 下载链接:文件:Node-v5.10.0.tar.zip
    30. 方法二:
    31. # apt-get install npm
    32. # apt install nodejs-legacy
    33. 检查是否正常安装
    34. #node -v
    35. Ubuntunode版本比较低,建议用第一种方法
    36. bower 安装[编辑]
    37. #npm install bower -g
    38. 检查是否正常安装
    39. # bower -version
    40. GraphicsMagick安装[编辑]
    41. # tar fvxz GraphicsMagick-1.3.24.tar.bz2
    42. # cd GraphicsMagick-1.3.24
    43. #./configure
    44. #make
    45. #make install
    46. 检查是否正常安装
    47. #whereis gm
    48. root@stf-test:~# whereis gm
    49. gm: /usr/local/bin/gm
    50. 下载链接 文件:GraphicsMagick-1.3.24.tar.zip
    51. libsodium安装[编辑]
    52. tar fvxz libsodium-1.0.8.tar.gz
    53. cd libsodium-1.0.8
    54. ./configure
    55. make
    56. make install
    57. 检查是否安装成功 使用命令whereis libsodium
    58. 下载链接文件:Libsodium-1.0.9.tar.zip
    59. zeromq安装[编辑]
    60. # tar fvxz zeromq-4.1.4.tar.gz
    61. # cd zeromq-4.1.4
    62. #./configure
    63. # make
    64. # make install
    65. 文件:Zeromq-4.2.0.tar.zip
    66. protobuf安装[编辑]
    67. # tar fvxz protobuf-cpp-3.0.0-alpha-3.tar.gz
    68. #cd protobuf-cpp-3.0.0-alpha-3
    69. #./configure --prefix=/usr/local/protobuf
    70. # make
    71. # make install
    72. # vi /etc/profile
    73. /etc/profile配置在上面配置已经加上了,直接使用命令source /etc/profile就能生效#protoc --version
    74. 文件:Protobuf-cpp-3.1.0.zip
    75. 建议用apt-get的方法安装
    76. apt-get install protobuf-compiler
    77. pkg-config安装[编辑]
    78. #apt-get install pkg-config
    79. rethinkdb安装[编辑]
    80. # 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 -
    81. (以上是一条命令,一定要把选择xenial 或者wily版本的rethink,不然后面启动STF时会报错)
    82. #apt-get update
    83. #apt-get install rethinkdb
    84. stf安装[编辑]
    85. 使用git 命令下载master版本
    86. #git clone https://github.com/openstf/stf.git
    87. 当然也可以下载stftgz包下来解压 进入stf目录,安装node_module的组件
    88. #npm install
    89. #npm link
    90. 安装完成 检查是否能启动stf
    91. #rethinkdb &
    92. #stf local --public-ip= ip地址