After installing TensorFlow1.2 on CentOS6, the following issues occurred when import TensorFlow:
Importerror:/lib64/libc.so.6:version ' glibc_2.17 ' not found
The reason for this error is that the 2.17 version of the GLIBC library is not installed.
On CentOS, the Yum install glibc command can only be updated to version 2.12. You need to manually download the build installation.
glibc-2.17 Download Address: https://ftp.gnu.org/gnu/glibc/glibc-2.17.tar.gz
Download glibc and Unzip
wget https://ftp.gnu.org/gnu/glibc/glibc-2.17.tar.gz TAR-XVF glibc-2.17.tar.gz
Compiling the installation
CD glibc-2.17 mkdir build CD. /configure--prefix=/usr--disable-profile--enable-add-ons--with-headers=/usr/include--with-binutils=/usr/bin Make && make install
To view the GLIBC shared library:
Ll/lib64/libc.so.6
Now libc.so.6 has been soft link to version 2.17
lrwxrwxrwx 1 root 12 July 10:11/lib64/libc.so.6-> libc-2.17.so
You can view glibc versions available in your system
Strings/lib64/libc.so.6 |grep glibc_
glibc_2.2.5 glibc_2.2.6 glibc_2.3 glibc_2.3.2 glibc_2.3.3 glibc_2.3.4 glibc_2.4 glibc_2.5 GLIBC_2.6 GLIBC_2.7 GLIBC_2.8 G libc_2.9 glibc_2.10 glibc_2.11 glibc_2.12 glibc_2.13 glibc_2.14 glibc_2.15 glibc_2.16 GLIBC_2.17 GLIBC_PRIVATE
There should be no problem now.
Resources: Linux/centos upgrade C Basic runtime CLIBC considerations