I have been having a tremendous trouble installing Tensorflow on CentOS 6.9.
I tried to follow the instruction installing Tensorflow on CentOS using Anaconda3 (naturally for Python 3, Python 3.5.3 to be exact). Most of the packages installed correctly except for Tensorflow. I had to upgrade GCC version from 4.4.7 to 6.3.0 for installation of some packages, but it still says 4.4.7 on the Python screen.
Anyways, I did install Tensorflow according to the instruction, just not been able to use it because it throws this message
ImportError: /lib64/libc.so.6: version 'GLIBC_2.14' not found (required by /home/k/anaconda3/envs/h/lib/python3.5/site-packages/tensorflow/python/_pywrap_tensorflow.so)
So I tried to upgrade GLIBC to be newer than 2.14, so I upgraded binutils to 2.25 because binutils 2.20 would not run the configuration for one of the newer GLIBC file. However, I encountered another problem during configuration of GLIBC which was outdated Linux version. It required Linux 3.2.0, when I have Linux 2.6.
This is my constraint.
- I cannot change the Linux version. It is a server machine, and I have to be on CentOS 6.9 Linux.
These are the questions that I want to ask everyone:
I would love to change my GCC version from 6.3.0 to somewhere in between 5.0 ~ 5.2 because apparently CUDA 8.0 does not support GCC version after 5.3.1. When I type in
gcc --version, I see GCC Version 6.3.0, but when I get on python 3, it shows me
[GCC 4.4.7 20120313 (Red Hat 4.4.7-1)] on linux. How should I go about it?
I want to upgrade my GLIBC so that it would run Tensorflow on my platform. I believe the GLIBC version that I need to surpass is GLIBC_2.14, but I am unsure if that would be enough to run Tensorflow. Please please help me upgrade GLIBC so I can run Tensorflow on my server.
In order to accomplish the tasks above, which binutil package do I need to have? I downloaded devtools-4-binutils to have the latest binutils packages, but I'm afraid that the latest package might not be in sync with Linux 2.6 version..
If none of this work, could you please tell me how to reset GCC back to its factory version of 4.4.7, and binutils back to 2.20? If I can reverse all the modifications I have applied to the machine, I believe I will be able to install GCC version < 5.3.1 and configure the newer GLIBC for Tensorflow installation..