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

Error building from source: "/usr/bin/env: python2.7: No such file or directory" #2801

Closed
peterzcc opened this Issue Jun 11, 2016 · 3 comments

Comments

Projects
None yet
2 participants
@peterzcc

peterzcc commented Jun 11, 2016

I'm building tensorflow from source but I don't know why python2.7 is required. Does anyone know whether I can change the crosstool_wrapper_driver_is_not_gcc file?

ERROR: ~/.cache/bazel/_bazel_czeng/211970d9a1065a07eafbeb7dcc542b10/external/protobuf/BUILD:331:1: Linking of rule '@protobuf//:protoc' failed: crosstool_wrapper_driver_is_not_gcc failed: error executing command
(cd /csproject/dygroup2/czeng/.cache/bazel/_bazel_czeng/211970d9a1065a07eafbeb7dcc542b10/execroot/tensorflow &&
exec env -
third_party/gpus/crosstool/clang/bin/crosstool_wrapper_driver_is_not_gcc -o bazel-out/host/bin/external/protobuf/protoc bazel-out/host/bin/external/protobuf/_objs/protoc/external/protobuf/src/google/protobuf/compiler/main.o bazel-out/host/bin/external/protobuf/libprotoc_lib.a bazel-out/host/bin/external/protobuf/libprotobuf.a bazel-out/host/bin/external/protobuf/libprotobuf_lite.a -lpthread -lstdc++ -B/usr/bin/ -pie -Wl,-z,relro,-z,now -no-canonical-prefixes -pass-exit-codes '-Wl,--build-id=md5' '-Wl,--hash-style=gnu' -Wl,-S -Wl,--gc-sections): com.google.devtools.build.lib.shell.BadExitStatusException: Process exited with status 127.
/usr/bin/env: python2.7: No such file or directory

@peterzcc

This comment has been minimized.

Show comment
Hide comment
@peterzcc

peterzcc Jun 11, 2016

Seems like changing the python2.7 to python2 works in the first line of third_party/gpus/crosstool/clang/bin/crosstool_wrapper_driver_is_not_gcc

peterzcc commented Jun 11, 2016

Seems like changing the python2.7 to python2 works in the first line of third_party/gpus/crosstool/clang/bin/crosstool_wrapper_driver_is_not_gcc

@peterzcc

This comment has been minimized.

Show comment
Hide comment
@peterzcc

peterzcc Jun 12, 2016

Solved by changing the interpreter to python2

peterzcc commented Jun 12, 2016

Solved by changing the interpreter to python2

@peterzcc peterzcc closed this Jun 12, 2016

@suiyuan2009

This comment has been minimized.

Show comment
Hide comment
@suiyuan2009

suiyuan2009 Jul 18, 2016

Contributor

fixed in version 0.9.0

Contributor

suiyuan2009 commented Jul 18, 2016

fixed in version 0.9.0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment