This shows the process of compiling the TensorFlow from the source code.
The original tutorial https://github.com/tensorflow/tensorflow/blob/master/tensorflow/g3doc/get_started/os_setup.md# on GitHub Installing-from-sources
First, install the Build tool Bazel (Http://www.bazel.io/docs/install.html#install-on-ubuntu)
Install on Ubuntuinstall JDK 8If is running Ubuntu wily (15.10), you can skip this step. But for Ubuntu trusty (14.04 LTS) users, since OpenJDK 8 isn't available on trusty, install Oracle JDK 8:$ sudo ad D-apt-repository ppa:webupd8team/java$ sudo apt-get update$ sudo apt-get install oracle-java8-installernote:you might ne Ed to sudo apt-get install Software-properties-common If you don't have the add-apt-repository command. See HERE.1. ADD Bazel Distribution URI as a package source (one time Setup) $ echo "Deb Http://storage.googleapis.com/bazel-apt stable jdk1.8 "| sudo tee/etc/apt/sources.list.d/bazel.list$ Curl HTTPS://STORAGE.GOOGLEAPIS.COM/BAZEL-APT/DOC/APT-KEY.PUB.GPG | sudo apt-key add-if want to use the JDK 7, please replace jdk1.8 with jdk1.7 and If you want to install the testing V Ersion of Bazel, replace stable with testing.2. Update and install bazel$ sudo apt-get update && sudo apt-get install bazelonce installed, can upgrade to Newe R versionof Bazel with:$ sudo apt-get upgrade Bazel
Compiling tensorflow from source in Ubuntu