I figured out how to build tensorflow from source in centOS. This process does not require any root access and you can do it anywhere. This will save your time and no need to worry much after this.
#What to prepare:
- Java 8
- Bazel
- Tensorflow
- CuDNN and CUDA toolkit (assume you have install them)
#Installation ##Bazel