1 protobuf-3.5.1 安装
wget https://github.com/protocolbuffers/protobuf/releases/download/v3.5.1/protobuf-all-3.5.1.tar.gz
tar -zxvf protobuf-all-3.5.1.tar.gz
brew install autoconf
brew install automake
brew install libtool
./autogen.sh && ./configure && make
make check
sudo make install
which protoc
protoc --version
ln -s /usr/local/bin/protoc $your_starrcoks_code_dirs/thirdparty/installed/bin/protoc
2 thrift-0.13 安装
brew install [email protected]
echo 'export PATH="/usr/local/opt/[email protected]/bin:$PATH"' >> ~/.bash_profile
ln -s /usr/local/opt/[email protected]/bin/thrift $your_starrcoks_code_dirs/thirdparty/installed/bin/thrift
3 llvm 安装
brew install llvm
echo 'export PATH="/usr/local/opt/llvm/bin:$PATH"' >> ~/.bash_profile
4 在Clion Preferences | Build, Execution, Deployment | CMake 里设置 Environment
STARRCOKS_GCC_HOME=/usr;DORIS_THIRDPARTY=$your_starrcoks_code_dirs/thirdparty;STARRCOKS_LLVM_HOME=/usr/local/opt/llvm