You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Yes, latest pip solves the first part. But the libc.so is bigger problem. It is non trivial hacks to give the one app newer glibc than the system one.
You may try recompile it on your system. But it may take some effort just to compile bazel, you will not have java8, nor newer versions of numpy nor anything else... Is upgrading to at least 14.04 LTS realy not an option for you?
Reacted by Hugo van Kemenade, Xingyuan Bu and galactica
Upgrading ubuntu is definitely the best way to go. But if not...
I would not upgrade the system libc.so on the shared cluster. It should be backward compatible but there are regression here and there. You can still make it work if you want to. If you grep libc from newer package [http://packages.ubuntu.com/trusty/libc6](click on amd64). You can extract that deb. Then you can use LD_PRELOAD the files from content directory. See something like [https://rafalcieslak.wordpress.com/2013/04/02/dynamic-linker-tricks-using-ld_preload-to-cheat-inject-features-and-investigate-programs/] or [http://stackoverflow.com/questions/5223971/question-about-overriding-c-standard-library-functions-and-how-to-link-everythin].
Libc has pretty much no dependencies but kernel. I believe tensorflow does not need anything fancy new there. Newer libc in custom directory and LD_PRELOAD trick should allow you to run the bazel binaries from download as well as the tensorflow pip (you may not need to recompile anymore). Good for shared cluster with old system.
BTW: Google / bazel philosophy is to rebuild everything from sources (that's why bazel download so many git repos). That also means there are very little external dependencies. But yes, it depends on libc.
I don't have sudo permission, so updating or installing GLIBC is not possible. I tried extracting libc6 from debian package and set the path in LD_PRELOAD but it's not using that instead it always point to /lib64/libc.so.6(ImportError: /lib64/libc.so.6: version `GLIBC_2.17' not found) but my LD_PRELOAD is defined as /home/hpc/pr63so/ga93yih2/lib/libc.so.6
The reason is because LD_PRELOAD is not loading properly, am getting following error message
ERROR: ld.so: object '/home/hpc/pr63so/ga93yih2/lib/libc.so.6' from LD_PRELOAD cannot be preloaded: ignored.
Finally, I ran convolutional.py with LD_PRELOAD or LD_LIBRARY_PATH option and those neither helpful. Here is an error message.
(tensorflow)[dev-srv /home/user/tensorflow]# LD_PRELOAD=/opt/tensorflow/glibc/lib64/libc.so.6 python ./lib/python2.7/site-packages/tensorflow/models/image/mnist/convolutional.py
python: relocation error: /opt/tensorflow/glibc/lib64/libc.so.6: symbol _dl_starting_up, version GLIBC_PRIVATE not defined in file ld-linux-x86-64.so.2 with link time reference
(tensorflow)[dev-srv /home/user/tensorflow]# LD_LIBRARY_PATH=/opt/tensorflow/glibc/lib64 python ./lib/python2.7/site-packages/tensorflow/models/image/mnist/convolutional.py
python: relocation error: /opt/tensorflow/glibc/lib64/libc.so.6: symbol _dl_starting_up, version GLIBC_PRIVATE not defined in file ld-linux-x86-64.so.2 with link time reference
Does anyone really solve this issue without upgrading OS?
I use OS X to install tensorflow, it's succeed,but when I use python to write first program,I got some error, who can help me?
there is error message:
import tensorflow as tf
Traceback (most recent call last):
File "", line 1, in
File "/Library/Python/2.7/site-packages/tensorflow/init.py", line 4, in
from tensorflow.python import *
File "/Library/Python/2.7/site-packages/tensorflow/python/init.py", line 13, in
from tensorflow.core.framework.graph_pb2 import *
File "/Library/Python/2.7/site-packages/tensorflow/core/framework/graph_pb2.py", line 8, in
from google.protobuf import reflection as _reflection
File "/Library/Python/2.7/site-packages/google/protobuf/reflection.py", line 58, in
from google.protobuf.internal import python_message as message_impl
File "/Library/Python/2.7/site-packages/google/protobuf/internal/python_message.py", line 59, in
import six.moves.copyreg as copyreg
ImportError: No module named copyreg
Reacted by Jeff Hammond, Yu Zeng, mega, BK, Chong Wu, Dimitrios Vitsios, Alican Bozkurt, aleczadikian, J. Williford, Byung-Cheol Cho and 20 more
I think we do require glibc >2.17 at the moment. Closing for now but if someone has a solution for earlier versions, would be great to have it here. Thanks!
Overview of how to do it.
Install Bazel - (but not the latest version, because it apparently fails to compile tensorflow according to a ticket I saw there)
I used Build label: 0.1.1
Update pip, install wheels and setuptools
Check out tensorflow's latest version, modify tensorflow/tensorflow.bzl file
Create the pip package and install
$ bazel build -c opt --config=cuda //tensorflow/tools/pip_package:build_pip_package
$ bazel-bin/tensorflow/tools/pip_package/build_pip_package /tmp/tensorflow_pkg
The name of the .whl file will depend on your platform.
$ pip install /tmp/tensorflow_pkg/tensorflow-0.5.0-cp27-none-linux_x86_64.whl
mkdir ~/glibc
cd ~/glibc
wget http://ftp.gnu.org/gnu/glibc/glibc-2.23.tar.gz
tar zxvf glibc-2.23.tar.gz
cd glibc-2.23
mkdir build
cd build
../configure --prefix=/opt/glibc-2.23
make -j4
sudo make install
export LD_LIBRARY_PATH=/opt/glibc-2.23/lib
Activity
anjishnu commentedon Nov 10, 2015
The issue was solved by updating to the latest version of pip - however I'm getting a new error.
ImportError: /lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.17 not found
[-]Can't install on ubuntu precise despite following instructions[/-][+]Can't install on ubuntu 12.04.5 LTS[/+]jendap commentedon Nov 10, 2015
Yes, latest pip solves the first part. But the libc.so is bigger problem. It is non trivial hacks to give the one app newer glibc than the system one.
You may try recompile it on your system. But it may take some effort just to compile bazel, you will not have java8, nor newer versions of numpy nor anything else... Is upgrading to at least 14.04 LTS realy not an option for you?
evanthebouncy commentedon Nov 10, 2015
welp... time for 14.04 I guess
jendap commentedon Nov 10, 2015
Upgrading ubuntu is definitely the best way to go. But if not...
I would not upgrade the system libc.so on the shared cluster. It should be backward compatible but there are regression here and there. You can still make it work if you want to. If you grep libc from newer package [http://packages.ubuntu.com/trusty/libc6](click on amd64). You can extract that deb. Then you can use LD_PRELOAD the files from content directory. See something like [https://rafalcieslak.wordpress.com/2013/04/02/dynamic-linker-tricks-using-ld_preload-to-cheat-inject-features-and-investigate-programs/] or [http://stackoverflow.com/questions/5223971/question-about-overriding-c-standard-library-functions-and-how-to-link-everythin].
Libc has pretty much no dependencies but kernel. I believe tensorflow does not need anything fancy new there. Newer libc in custom directory and LD_PRELOAD trick should allow you to run the bazel binaries from download as well as the tensorflow pip (you may not need to recompile anymore). Good for shared cluster with old system.
BTW: Google / bazel philosophy is to rebuild everything from sources (that's why bazel download so many git repos). That also means there are very little external dependencies. But yes, it depends on libc.
vinodrajendran001 commentedon Nov 12, 2015
I don't have sudo permission, so updating or installing GLIBC is not possible. I tried extracting libc6 from debian package and set the path in LD_PRELOAD but it's not using that instead it always point to /lib64/libc.so.6(ImportError: /lib64/libc.so.6: version `GLIBC_2.17' not found) but my LD_PRELOAD is defined as /home/hpc/pr63so/ga93yih2/lib/libc.so.6
The reason is because LD_PRELOAD is not loading properly, am getting following error message
ERROR: ld.so: object '/home/hpc/pr63so/ga93yih2/lib/libc.so.6' from LD_PRELOAD cannot be preloaded: ignored.
any workaround for this?
initproc commentedon Nov 13, 2015
Does anyone solve this?
I use cent os 6.x and it's glibc version is under the 2.12.
I download glibc-2.17-78.el7.x86_64.rpm in the Internet and uncompress rpm to /opt/tensorflow/glibc diretory.
Finally, I ran convolutional.py with LD_PRELOAD or LD_LIBRARY_PATH option and those neither helpful. Here is an error message.
Does anyone really solve this issue without upgrading OS?
vinodrajendran001 commentedon Nov 13, 2015
I am also eagerly waiting for a solution
blacknes commentedon Nov 13, 2015
I use OS X to install tensorflow, it's succeed,but when I use python to write first program,I got some error, who can help me?
there is error message:
initproc commentedon Nov 13, 2015
In addition, even loading both libc.so.6 and ld-linux-x86-64.so.2 doesn't work.
vrv commentedon Nov 13, 2015
I think we do require glibc >2.17 at the moment. Closing for now but if someone has a solution for earlier versions, would be great to have it here. Thanks!
vinodrajendran001 commentedon Dec 7, 2015
Anyone able to find a solution for it ?
anjishnu commentedon Dec 12, 2015
Managed to get it to build from source.
Overview of how to do it.
Install Bazel - (but not the latest version, because it apparently fails to compile tensorflow according to a ticket I saw there)
I used Build label: 0.1.1
Update pip, install wheels and setuptools
Check out tensorflow's latest version, modify tensorflow/tensorflow.bzl file
Add '-lrt' to link opts
in def tf_extension_linkopts():
change
to
Then build according to the instructions on the source build page:
Also, on the instructions page (http://tensorflow.org/get_started/os_setup.md#installing_from_sources) you will see these three commands, but you have to add —config=cuda, like so:
Create the pip package and install
$ bazel build -c opt --config=cuda //tensorflow/tools/pip_package:build_pip_package
$ bazel-bin/tensorflow/tools/pip_package/build_pip_package /tmp/tensorflow_pkg
The name of the .whl file will depend on your platform.
$ pip install /tmp/tensorflow_pkg/tensorflow-0.5.0-cp27-none-linux_x86_64.whl
11 remaining items
[OpenCL] Fixes an issue caused by switch to aligned allocator for syc…
[OpenCL] Fixes an issue caused by switch to aligned allocator for syc…
[OpenCL] Fixes an issue caused by switch to aligned allocator for syc…
[OpenCL] Implementation improvements (#9117)
[OpenCL] Fixes GatherOP on SYCL devices (tensorflow#53)
empty16 commentedon Nov 26, 2017
Hey, guys. Here are the solutions.
Cannot run on CentOS with glibc 2.17
cdancette commentedon Feb 13, 2018
conda install tensorflowworks for meMerge pull request tensorflow#53 from lissyx/mmap
chenmc1996 commentedon Mar 29, 2018
conda install tensorflowand life is easyqiaofeiw commentedon Apr 6, 2018
conda install tensorflow work for me too!!!
Add TensorFlow workaround for our Jenkins server
Add TensorFlow workaround for our Jenkins server (#357)
TheMoakMan commentedon Mar 1, 2019
I've tried conda install tensorflow and I'm still getting the same issue. GLIBC 2.17 not found.
Merge pull request tensorflow#53 from ROCmSoftwarePlatform/develop-up…
Fixed crash if enabled op profiling for benchmark_model (tensorflow#53)