Skip to content

Instantly share code, notes, and snippets.

@xiangjjj
Created March 16, 2017 19:20
Show Gist options
  • Save xiangjjj/2a743a9408bd19a4c290c08d3abe79c1 to your computer and use it in GitHub Desktop.
Save xiangjjj/2a743a9408bd19a4c290c08d3abe79c1 to your computer and use it in GitHub Desktop.
Build Bazel from Source
# start from home directory
cd $HOME
# get Bazel dist from https://github.com/bazelbuild/bazel/releases
$ wget https://github.com/bazelbuild/bazel/releases/download/0.4.5/bazel-0.4.5-dist.zip
# unzip Bazel
unzip bazel-0.4.5-dist.zip -d bazel
# compile Bazel
$HOME/bazel/compile.sh
# add binary to your environment
$ export PATH=$HOME/bazel/output:$PATH
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment