centos7安装bazel
先决条件:openjdk1.8 ,openjdk-devel1.8 1. 操作系统需求 centos7 2. 资源库下载 https://docs.bazel.build/versions/master/install-redhat.html 参见以上链接,下载repo文件并复制到 /etc/yum.repos.d/. 3. 安装 yum install bazel 可能会存在镜像连接超时的情况,这时候可以多几次或者尝试科学上网 完成后,bazel是无法识别命令的。此时bazel安装在/usr/bin 下面 在/etc/profile中天剑环境变量: export BAZEL_HOME=/usr/bin export PATH =$PATH:$BAZEL_HOME 注意不要写成,会无法识别 export BAZEL_HOME=/usr/bin/ 然后再次运行 bazel命令: WARNING: --batch mode is deprecated. Please instead explicitly shut down your Bazel server using the command "bazel shutdown". [bazel release 0.19.2- (@non-git)] Usage: bazel <command> <options> ...