See the instructions for installing Bazel on:
For other platforms, you can try to compile from source.