Create a gist now

Instantly share code, notes, and snippets.

What would you like to do?
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