Skip to content

Instantly share code, notes, and snippets.

@kangkaisen
Last active February 26, 2024 11:36
Show Gist options
  • Save kangkaisen/0253df91661c9b14471250e26934ef57 to your computer and use it in GitHub Desktop.
Save kangkaisen/0253df91661c9b14471250e26934ef57 to your computer and use it in GitHub Desktop.
StarRocks Mac Clion 代码阅读,高亮跳转

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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment