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.
Before installing Bazel, ensure that you have the following prerequisites:
Follow the steps below to install Bazel on your Windows 11 machine:
Open your preferred web browser and navigate to the following URL: https://docs.bazel.build/versions/main/install-windows.html.
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).
Once the download is complete, extract the content of the downloaded zip file.
Open the extracted folder and locate the "bazel.exe" file.
Right-click on the "bazel.exe" file, and select the "Properties" option from the context menu.
In the Properties window, click on the "Compatibility" tab.
Click on the "Change settings for all users" button.
In the "Compatibility for all users" window, check the "Run this program as an administrator" option.
Click on "Apply" and "OK" to save the changes.
Press the "Win+R" keys simultaneously to open the "Run" dialog box.
Type "cmd" in the Run dialog box and press "Ctrl+Shift+Enter" to open the Command Prompt with administrator rights.
In the Command Prompt window, navigate to the directory where you extracted the Bazel ZIP file.
Enter the following command to install Bazel:
bazel-<version>-windows-x86_64.exe
Replace <version>
with the version of Bazel you downloaded.
Wait for the installation process to complete.
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.
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!