yongyong-e

[Ubuntu16.04] Bazel 설치 본문

OS/Ubuntu

[Ubuntu16.04] Bazel 설치

Yonghan Kim 2017. 8. 14. 11:26

▶ Bazel

소프트웨어를 빠르고 안정적이게 빌드하는 도구

텐서플로우를 빌드하기 위해 설치


1. JDK 8 설치

$ sudo add-apt-repository ppa:webupd8team/java

$ sudo apt-get update

$ sudo apt-get install oracle-java8-installer

2. bazel URI 추가

$ echo "deb [arch=amd64] http://storage.googleapis.com/bazel-apt stable jdk1.8" | sudo tee /etc/apt/sources.list.d/bazel.list

$ sudo apt install curl # if you did not install curl

$ curl https://bazel.build/bazel-release.pub.gpg | sudo apt-key add -

3. update & install

$ sudo apt-get update && sudo apt-get install bazel

4. 확인

$ bazel version


▶ Use the binary installer

1. Install required packages

sudo apt-get install pkg-config zip g++ zlib1g-dev unzip python


2. Download Bazel

GitHub releases page

Download the binary installer bazel-<version>-installer-linux-x86_64.sh


3. Run the installer

chmod +x bazel-<version>-installer-linux-x86_64.sh ./bazel-<version>-installer-linux-x86_64.sh --user


4. Set up your environment

export PATH="$PATH:$HOME/bin"


'OS > Ubuntu' 카테고리의 다른 글

Ubuntu와 Windows 멀티부팅시 순서 설정  (0) 2017.10.14
SimpleScreenRecorder  (0) 2017.08.25
FileZilla  (0) 2017.08.25
[Ubuntu16.04] Anaconda 설치  (0) 2017.07.27
Cuda 8.0 toolkit install - nvcc not found - ubuntu 16.04  (0) 2017.07.26
Comments