I am trying to install tensorflow on a linux server where I am just a user without root permission. And I can not transfer files to / from it, as I ssh to it through the transition server. The system is as follows:
Linux THENAME_OF_SURVER 2.6.32-573.18.1.el6.x86_64 #1 SMP Tue Feb 9 22:46:17 UTC 2016 x86_64 x86_64 x86_64 GNU/Linux
I set the tensor flow through pip install tensorflow, and tensorflow will display the following:
ImportError: /lib64/libc.so.6: version `GLIBC_2.16' not found
I installed a new version of glibc
git clone git://sourceware.org/git/glibc.git
cd glibc
git checkout --track -b local_glibc-2.16 origin/release/2.16/master
mkdir build
cd build
../configure --prefix=/home/MYNAME/dependency/glibc-2.16
make -j4
make install
Following the instructions on the Internet, I changed the environment variables with:
export LD_LIBRARY_PATH=/home/MYNAME/dependency/glibc-2.16/lib
BUT this leads me to a problem: I cannot use any command. For example, I called ls, and he would have warned me like this:
ls: error while loading shared libraries: __vdso_time: invalid mode for dlopen(): Invalid argument
Then I ran the following command to run the command as follows:
/home/MYNAME/dependency/glibc-2.16/lib/ld-linux-x86-64.so.2 --library-path /home/MYNAME/dependency/glibc-2.16/lib:$LD_LIBRARY_PATH:/path/to/gcc-5.2.0/lib64:/usr/lib64/:/usr/lib64/ ls
( , gcc-5.2.0, which gcc /usr/local/sbin/gcc, /usr/local/gcc-5.3.0/bin/gcc, lib64)
:
ls: error while loading shared libraries: ls: cannot open shared object file
, ls, . glibc. - , glibc? !
EDIT:
, :
LD_LIBRARY_PATH=/home/MYNAME/dependency/glibc-2.16/lib python
python: error while loading shared libraries: __vdso_time: invalid mode for dlopen(): Invalid argument
/home/MYNAME/dependency/glibc-2.16/lib/ld-2.16.so python
python: error while loading shared libraries: __vdso_time: invalid mode for dlopen(): Invalid argument
EDIT2 :
, .
- shadoworflow Python , root. , ImportError: /lib64/libc.so.6: version 'GLIBC_2.16' not found .
" ", :
LD_LIBRARY_PATH=/home/USERNAME/dependency/glibc-2.17/lib/:/lib64/:/usr/local/gcc-5.3.0/lib64/ /home/USERNAME/dependency/glibc-2.17/lib/ld-2.17.so /home/USERNAME/anaconda2/bin/python
( ??? , .):
LD_LIBRARY_PATH=: split???/glibc-2.17/lib//lib64/ /usr/local/gcc-5.3.0/lib64/: find / -name 'libgcc_s.so.1',
/???/glibc-2.17/lib/ld-2.17.so/???/python . Python import sys; print(sys.executable), Python.
:
- glibc-2.17 gnu. 2.17, 2.17, 2.17 .
- . Python,
os.system('ls') os.system('python xxx.py'). , , -: sh: error while loading shared libraries: __vdso_time: invalid mode for dlopen(): Invalid argument, .