安装
sudo apt install python3-gi gobject-introspection gir1.2-gtk-3.0 gir1.2-notify-0.7
sudo apt install gir1.2-appindicator3-0.1
sudo apt install gir1.2-ayatanaappindicator3-0.1 # in orangepi
Ubuntu22.04安装依赖
- install deps
- install etcd-cpp-apiv3
-
install etcdadm
-
install pybind11 for python module
安装tbkpy依赖
从源码编译tbk-core模块
## 下载源码(当前版本需要dev分支)
git clone --recurse-submodules https://github.com/Turing-zero/TBK.git
# git clone -b dev --recurse-submodules https://github.com/Turing-zero/TBK.git
export TBK_INSTALL_PATH={your/tbk_core/install/path} # your install path for tbk_core, such as $HOME/temp_usr_tbk or /usr/local/tbk
cd ${PROJECT_ROOT}/core
mkdir -p build
cd build
cmake .. -DCMAKE_INSTALL_PREFIX=$TBK_INSTALL_PATH # -DBUILD_TEST=ON
# full version
# cmake .. -DCMAKE_INSTALL_PREFIX=$HOME/temp_usr_tbk -DBUILD_TEST=ON
cmake --build . -j`nproc`
# install the tbk_core library to the specified path
cmake --install .
- 通过增加
-DBUILD_TEST=ON参数,编译测试程序 - 通过增加
-DCMAKE_INSTALL_PREFIX=$TBK_INSTALL_PATH参数,指定安装路径
Optional. 安装tbkpy-core(tbk-core的python接口)
export CMAKE_ARGS="-DCMAKE_PREFIX_PATH=$TBK_INSTALL_PATH"
pip install git+https://github.com/Turing-zero/tbkpy-core.git
启动ETCD后台
参考配置集群章节
安装 && 测试
- 测试tbk-core
- 测试tbkpy-core