New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
crosstool_wrapper_driver_is_not_gcc failed: python2: error while loading shared libraries: libpython2.7.so.1.0: cannot open shared object file: No such file or directory #1870
Comments
I'm having the same issue in a cluster with CentOS 6.7, also installing from source, following the instructions from #110 /home/p269371/.cache/bazel/_bazel_p269371/62515d408409b93db1ccb498556e2fe0/external/protobuf/BUILD:71:1: C++ compilation of rule '@protobuf//:protobuf_lite' failed: crosstool_wrapper_driver_is_not_gcc failed: error executing command third_party/gpus/crosstool/clang/bin/crosstool_wrapper_driver_is_not_gcc -U_FORTIFY_SOURCE '-D_FORTIFY_SOURCE=1' -fstack-protector -fPIE -Wall -Wunused-but-set-parameter -Wno-free-nonheap-object ... (remaining 42 argument(s) skipped): com.google.devtools.build.lib.shell.BadExitStatusException: Process exited with status 127. $python-config --ldflags $ ls /software/software/Python/2.7.11-foss-2016a/lib
$ls /software/software/Python/2.7.11-foss-2016a/lib/python2.7/config Someone solved it by installing python elsewhere: #414, I'd like to avoid that. |
@kmuriki What location did you enter for python while running |
@kmuriki Gentle ping. Please let me know if this is still an issue. |
Manjunath, Thanks for writing back to me. Its been couple of weeks since I tried this Just to answer your earlier question we do not install Python to the Thanks, On Mon, Jun 13, 2016 at 7:43 AM, Manjunath Kudlur notifications@github.com
|
Same behaviour as @mlopezantequera when trying to build on CentOS 6.7. My debug output is the same, expect for the actual installation directory of Python that is different in my case. If that matters, I'm running Python 2.7.10 using environment modules, so LD_LIBRARY_PATH etc are all set up correctly. The actual Python binary and libs have been built with EasyBuild. |
I am having the same issue on CentOs 6.7. Now I am using Bazel version 0.3.0 to compile tensorflow 0.9.0. How to make bazel recognize LD_LIBRARY_PATH is the question. #110 includes step-wise directions including a couple of hacks but does not work for me. Still getting the libpython not found error. |
A polite reminder to all participants. Kindly do share the solution to this issue if you found one. |
I'm having the same issue. I can get tensorflow to install from source without GPU support enabled. But with GPU support, on CentOS 6.4, it can't find libpython.so.1.0. Python is installed in a non-standard location. Suggestions would be welcome. |
Same problem here. |
Did it happen because of upgrading from python2.6 to 2.7? |
Closing because of inactivity. |
Environment info
Operating System: Scientific Linux 6.5
Installed version of CUDA and cuDNN:
CUDA - 7.5.18
CuDNN - 4.0.7
Tensorflow installation attempt from source..
ERROR: /global/home/users/kmuriki/.cache/bazel/_bazel_kmuriki/7a46079e1611cbcdacd2bbe4113de14c/external/re2/BUILD:9:1: C++ compilation of rule '@re2//:re2' failed: crosstool_wrapper_driver_is_not_gcc failed: error executing command third_party/gpus/crosstool/clang/bin/crosstool_wrapper_driver_is_not_gcc -U_FORTIFY_SOURCE '-D_FORTIFY_SOURCE=1' -fstack-protector -fPIE -Wall -Wunused-but-set-parameter -Wno-free-nonheap-object ... (remaining 36 argument(s) skipped): com.google.devtools.build.lib.shell.BadExitStatusException: Process exited with status 127.
python2: error while loading shared libraries: libpython2.7.so.1.0: cannot open shared object file: No such file or directory
python2 on my machine is located here : /global/software/sl-6.x86_64/modules/langs/python/2.7.8/bin/python2 and I do have libpython2.7.so.1.0 located here: /global/software/sl-6.x86_64/modules/langs/python/2.7.8/lib/libpython2.7.so.1.0.
LD_LIBRARY_PATH points to /global/software/sl-6.x86_64/modules/langs/python/2.7.8/lib
$ python-config --ldflags
-lpthread -ldl -lutil -lm -lpython2.7 -Xlinker -export-dynamic
What else am I missing ?
The text was updated successfully, but these errors were encountered: