Donwloadに以下のように、その後のgitからのコード、および実行のsh compile.sh、 エラーbazelのインストールに失敗しました:bazel-version-installer-os.sh
を使用してみてくださいは、Linux
INFO: You can skip this first step by providing a path to the bazel binary as second argument:
INFO: compile.sh compile /path/to/bazel
Building Bazel from scratch......
Building Bazel with Bazel.
WARNING: /search/david/bazel-master/src/main/native/BUILD:46:16: in includes attribute of cc_binary rule //src/main/native:libunix.so: '.' resolves to 'src/main/native' not in 'third_party'. This will be an error in the future.
WARNING: /search/david/bazel-master/src/main/protobuf/BUILD:36:1: in includes attribute of cc_library rule //src/main/protobuf:command_server_cc_proto: '.' resolves to 'src/main/protobuf' not in 'third_party'. This will be an error in the future. Since this rule was created by the macro 'cc_grpc_library', the error might have been caused by the macro implementation in /search/david/bazel-master/tools/build_rules/genproto.bzl:104:18.
INFO: Found 1 target...
ERROR: /search/david/bazel-master/src/main/cpp/BUILD:53:1: C++ compilation of rule '//src/main/cpp:blaze_abrupt_exit' failed: gcc -std=gnu99 failed: error executing command
(cd /tmp/bazel.MM2za3vz/out/bazel-master && \
exec env - \
PATH=/usr/local/cuda-7.0/bin:/usr/lib64/qt-3.3/bin:/usr/local/bin:/bin:/usr/bin:/usr/local/sbin:/usr/sbin:/sbin:/usr/local/go/bin:/home/david/bin \
'/tmp/bazel.MM2za3vz/out/external/local_config_cc/gcc -std=gnu99' -U_FORTIFY_SOURCE '-D_FORTIFY_SOURCE=1' -fstack-protector -Wall -Wl,-z,-relro,-z,now -Wunused-but-set-parameter -Wno-free-nonheap-object -fcolor-diagnostics -fno-omit-frame-pointer '-std=c++0x' -iquote . -iquote bazel-out/local-fastbuild/genfiles -iquote external/bazel_tools -iquote bazel-out/local-fastbuild/genfiles/external/bazel_tools -isystem external/bazel_tools/tools/cpp/gcc3 -no-canonical-prefixes -fno-canonical-system-headers -Wno-builtin-macro-redefined '-D__DATE__="redacted"' '-D__TIMESTAMP__="redacted"' '-D__TIME__="redacted"' '-frandom-seed=bazel-out/local-fastbuild/bin/src/main/cpp/_objs/blaze_abrupt_exit/src/main/cpp/blaze_abrupt_exit.pic.o' -MD -MF bazel-out/local-fastbuild/bin/src/main/cpp/_objs/blaze_abrupt_exit/src/main/cpp/blaze_abrupt_exit.pic.d -fPIC -c src/main/cpp/blaze_abrupt_exit.cc -o bazel-out/local-fastbuild/bin/src/main/cpp/_objs/blaze_abrupt_exit/src/main/cpp/blaze_abrupt_exit.pic.o): com.google.devtools.build.lib.shell.BadExitStatusException: Process exited with status 127.
/tmp/bazel.MM2za3vz/out/bazel-master/_bin/process-wrapper: line 12: /tmp/bazel.MM2za3vz/out/external/local_config_cc/gcc -std=gnu99: No such file or directory
Target //src:bazel failed to build
INFO: Elapsed time: 3.054s, Critical Path: 0.19s
The bazel.MM2za3vz is created tmp.And the gcc is not in this dir.How can be fixed