CentOS installation tensorflow:importerror:/lib64/libc.so.6:version ' glibc_2.17 ' not found_ depth learning

Source: Internet
Author: User


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


Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.