Install bazel on ubuntu

By | 2020년 9월 19일
Table of Content

Install bazel on ubuntu

go 설치

tar -C ~/. -xzf ~/Downloads/go1.15.2.linux-amd64.tar.gz

## 경로추가
export PATH=$PATH:${HOME}/go/bin
echo export PATH=$PATH:${HOME}/go/bin >> ~/.bashrc

bazel 설치

sudo apt install curl gnupg
sudo apt autoremove
curl -fsSL https://bazel.build/bazel-release.pub.gpg | gpg --dearmor > bazel.gpg
sudo mv bazel.gpg /etc/apt/trusted.gpg.d/
echo "deb [arch=amd64] https://storage.googleapis.com/bazel-apt stable jdk1.8" | sudo tee /etc/apt/sources.list.d/bazel.list
sudo apt update && sudo apt install bazel
bazel --version

bazel linter 설치

go get github.com/bazelbuild/buildtools/buildifier

답글 남기기