Macbook安装Bazel
Step 2: Download the Bazel installer
Next, download the Bazel binary installer named bazel-<version>-installer-darwin-x86_64.sh
from the Bazel releases page on GitHub.
Note: on macOS Catalina, due to Apple’s new app notarization requirements, you need to download the installer from the terminal using curl
:
# Example installing version `3.2.0`. Replace the version below as appropriate.
export BAZEL_VERSION=3.2.0
curl -fLO "https://github.com/bazelbuild/bazel/releases/download/${BAZEL_VERSION}/bazel-${BAZEL_VERSION}-installer-darwin-x86_64.sh"
This is a temporary workaround until the macOS release flow supports notarization (#9304).
Step 3: Run the installer
Run the Bazel installer as follows:
chmod +x "bazel-${BAZEL_VERSION}-installer-darwin-x86_64.sh"
./bazel-${BAZEL_VERSION}-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.
If you are on macOS Catalina and get an error that “bazel-real” cannot be opened because the developer cannot be verified, you need to re-download the installer from the terminal using curl
as a workaround; see Step 2 above.
Step 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:
export PATH="$PATH:$HOME/bin"
You can also add this command to your ~/.bashrc
, ~/.zshrc
, or ~/.profile
file.
All set! You can confirm Bazel is installed successfully by running the following command:
bazel --version
To update to a newer release of Bazel, download and install the desired version.
相关文章
- 【Python3网络爬虫开发实战】1.5.3-redis-py的安装
- gitbook安装与使用,并使用docker部署
- Windows 8.1下安装Mac OS X 10.8虚拟机
- CentOS安装及配置DNS服务器
- Nagios 在不同平台下的安装
- docker 应用篇————docker安装[二]
- Ubuntu18.04安装Typora
- Docker入门教程:诞生背景;用途及安装;image镜像文件;container容器文件;编写Dockerfile脚本文件;RUN与CMD命令的区别;CMD命令的覆盖问题;上传镜像
- AppSync安装
- 成功解决安装cuda的时候,下载的文件自动消失,并且出现An unknown error has occurred
- OpenCV入门笔记(一) Linux下的安装
- ubuntu 安装 BOOST
- docker 真实---安装基本映像 (一)
- windows下安装rabbitmq
- 安装使用ubuntu和opensuse
- k5.第二章 基于二进制包安装kubernetes v1.20 -- 集群部署(三)
- k8s1.18-kubeadm安装手册
- Linux/RedHat 编译安装GNU gcc 4.9.0 (g++)
- CentOS下安装MongoDB
- Docker安装Jenkins
- jetson nano安装pycuda