How to Install Bazel on Windows 11

Bazel is a build tool that automates software building and testing. It is an open-source project developed by Google. In this tutorial, we will guide you through the process to install Bazel on Windows 11.

Prerequisites

Before installing Bazel, ensure that you have the following prerequisites:

Installing Bazel on Windows 11

Follow the steps below to install Bazel on your Windows 11 machine:

  1. Open your preferred web browser and navigate to the following URL: https://docs.bazel.build/versions/main/install-windows.html.

  2. Scroll down to the Windows section, and click on the "Release" link that corresponds to the architecture of your machine (32-bit or 64-bit).

  3. Once the download is complete, extract the content of the downloaded zip file.

  4. Open the extracted folder and locate the "bazel.exe" file.

  5. Right-click on the "bazel.exe" file, and select the "Properties" option from the context menu.

  6. In the Properties window, click on the "Compatibility" tab.

  7. Click on the "Change settings for all users" button.

  8. In the "Compatibility for all users" window, check the "Run this program as an administrator" option.

  9. Click on "Apply" and "OK" to save the changes.

  10. Press the "Win+R" keys simultaneously to open the "Run" dialog box.

  11. Type "cmd" in the Run dialog box and press "Ctrl+Shift+Enter" to open the Command Prompt with administrator rights.

  12. In the Command Prompt window, navigate to the directory where you extracted the Bazel ZIP file.

  13. Enter the following command to install Bazel:

bazel-<version>-windows-x86_64.exe

Replace <version> with the version of Bazel you downloaded.

  1. Wait for the installation process to complete.

  2. Verify the Bazel installation by running the following command:

bazel version

If Bazel is installed correctly, you should see the version of Bazel you installed in the Command Prompt.

Congratulations! You have successfully installed Bazel on your Windows 11 machine.

Conclusion

In this tutorial, we have shown you how to install Bazel on Windows 11. We hope that this guide was helpful to you, and that you can now use Bazel to automate your software building and testing.

If you want to self-host in an easy, hands free way, need an external IP address, or simply want your data in your own hands, give IPv6.rs a try!

Alternatively, for the best virtual desktop, try Shells!