Skip to content

Instantly share code, notes, and snippets.

@zhangw
Last active March 30, 2023 04:02
Show Gist options
  • Save zhangw/06624e63baefda8523fb76b6003d2aa7 to your computer and use it in GitHub Desktop.
Save zhangw/06624e63baefda8523fb76b6003d2aa7 to your computer and use it in GitHub Desktop.
Building starrocks fe on MacOS
# check the specific thrift version from fe-core, for 2.5.3
ag THRIFT_DOWNLOAD thirdparty/vars.sh
## 90:THRIFT_DOWNLOAD="http://archive.apache.org/dist/thrift/0.13.0/thrift-0.13.0.tar.gz"
# install the specific thrift version, using brew which help to compile automatically
brew tap-new $USER/local-tap
brew extract --version='0.13.0' thrift $USER/local-tap
brew install thrift@0.13.0
## check the installation path, for me
/opt/homebrew/Cellar/thrift@0.13.0/0.13.0/bin/thrift --version
## Thrift version 0.13.0
# change directory to fe
cd fe
# run maven, but also set the thrift execute path
mvn clean package -DskipTests=true -Dstarrocks.thrift=/opt/homebrew/Cellar/thrift@0.13.0/0.13.0/bin/thrift
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment