-without-jdk-installer-darwin-x86_64.sh` is a version
of the installer without embedded JDK 8. Only use this installer if you already
have JDK 8 installed.
### 3. Run the installer
Run the installer:
chmod +x bazel--installer-darwin-x86_64.sh
./bazel--installer-darwin-x86_64.sh --user
The `--user` flag installs Bazel to the `$HOME/bin` directory on your system and
sets the `.bazelrc` path to `$HOME/.bazelrc`. Use the `--help` command to see
additional installation options.
### 4. Set up your environment
If you ran the Bazel installer with the `--user` flag as above, the Bazel
executable is installed in your `$HOME/bin` directory. It's a good idea to add
this directory to your default paths, as follows:
```bash
export PATH="$PATH:$HOME/bin"
```
You can also add this command to your `~/.bashrc` or `~/.profile` file.
You are all set. You can confirm Bazel is installed successfully by running
```bash
bazel version
```
When Bazel is installed using the binary installer, updating Bazel is only
possible by downloading and installing a new release.