Skip to content

Latest commit

 

History

History
136 lines (103 loc) · 2.35 KB

prepare.md

File metadata and controls

136 lines (103 loc) · 2.35 KB

Prepare

Author: chenghua Wang.

Install WSL Ubuntu20.04.

Our development is on WSL-Ubuntu20.04. If you has a physical machine runs Ubuntu20.04 already, just skip this section.

You can find all information on the WSL doc how-to-install

Dependencies

❗❗ Before you start, please make sure you have installed CMake v3.22+ and clang v12+ ❗❗

Core components

📌📌I have integrated all installation commands in a shell script. If you don't want to know the details or modify the installation settings, just run the commands below in the ./scripts directory.📌📌

bash ./install_devdep_ubuntu2004.sh

libssl

sudo apt-get install libssl-dev  # on ubuntu, centos is openssl-devel
git clone https://github.com/sogou/workflow
cd workflow
make CC=clang
sudo make CC=clang install
git clone https://github.com/lz4/lz4
cd lz4
make cc=clang
sudo make install
cd ..
# install the protobuf3 first.
sudo tar -zxvf ../tmp/protobuf-all-3.19.4.tar.gz
cd protobuf-3.19.4
sudo ./autogen.sh
sudo ./configure
sudo make CC=clang
sudo make check
sudo make install
sudo ldconfig
cd ..
# !!! restart machine if needed !!!
# install the sRPC framework.
git clone --recursive https://github.com/sogou/srpc.git
cd srpc
make CC=clang
sudo make CC=clang install

Install Redis

📌📌For manager service Only.📌📌

sudo apt install redis-server

gLog

sudo apt-get install libgoogle-glog-dev

fmt

git clone https://github.com/fmtlib/fmt.git
cd fmt
mkdir build
cd build
cmake ..
sudo make cc=clang install
cd ..
cd ..

lua jit

git clone https://github.com/LuaJIT/LuaJIT
cd LuaJIT
make CC=clang
sudo make install
cd ..

sol2

git clone https://github.com/ThePhD/sol2.git
cd sol2
mkdir build
cd build
cmake ..
sudo make
sudo make install
cd ..
cd ..

wfrest

git clone --recursive https://github.com/wfrest/wfrest
cd wfrest
make CC=clang
sudo make install

Frontend components

We adopt flutter to build our front end. The dart packages we used is illustrated bellow:

  • foo 1
  • foo 2