Install Tensorflow on centos 5

I am trying to install Tensorflow on Centos 5. Unfortunately, after he installed it with pip, as explained in the white paper

sudo pip install --upgrade https://storage.googleapis.com/tensorflow/linux/cpu/tensorflow-0.5.0-cp27-none-linux_x86_64.whl

I have the following error when I try to import shadoworflow into a python shell

ImportError: /home/users/caohao/.jumbo/lib/python2.7/site-packages/tensorflow/python/_pywrap_tensorflow.so: Invalid ELF OS ABI file

The following github question gave me an edge: https://github.com/tensorflow/tensorflow/issues/350

Actually, the tensor flow requires a glibc version of at least 2.17

When i type

ldd --version

I have the following output:

ldd (GNU libc) 2.5 

So I need to update glibc. I would like to do a "parallel" installation, since updating glibc can be dangerous for my machine. So I downloaded the source and I use the command

../glibc-2.18/configure --prefix = / opt / glibc-2.18

to install it in another directory

The problem is that when you run configure

The following error occurs:

configure: error: assembler is too old, no .cfi_personality support

I think I need to update binutils as well, so I downloaded the sources and installed them in / opt / binutils -2.26 / so as not to damage the system.

However, I still have the same error when I try to configure glibc.

Here are my questions:

How can I indicate which version of binutils I want to use to build glibc?

EDIT: I have to have RTFM, the answer is using '--with-binutils = directory option

How can I do shadoworflow to find a good version of glibc when it is installed in / opt / glibc -2.18?

FYI I am using python 2.7.11

Many thanks and best wishes

+5
source share
2 answers

I have the same problem.

But I used CentOS 6.5, and my version of GLIBC (GNU libc) is 2.12.

I tried to manually change the GLIBC version by uninstalling version 2.12 and installing 2.17.

He had a lot of problems for his dependencies and it was impossible to import TensorFlow.

So, I used CentOS 7.0 and has GLIBC version 2.17 by default.

I can install and run TensorFlow using CentOS 7.0 without any problems.

Thanks.

+2
source

I think that tensor flow requires exactly GLIB 2.17 and not 2.18. For some reason, he got hardcoded.

See also: Error importing Tensorflow in python2.7 in Ubuntu 12.04. 'GLIBC_2.17 not found'

0
source

Source: https://habr.com/ru/post/1241536/


All Articles