当我从源代码编译bazel 0.5.4时
./compile.sh meet this problem :
error executing shell command: 'cp 'bazel-out/local-opt/bin/src/main/protobuf/command_server_java_grpc_srcs.jar' 'bazel-out/local-opt/bin/src/main/protobuf/command_server_java_grpc_srcs.srcjar'' failed (Exit 127): bash failed: error executing command
(cd /tmp/bazel_b29JWvqF/out/execroot/io_bazel && \
exec env - \
/bin/bash -c 'cp '\''bazel-out/local-opt/bin/src/main/protobuf/command_server_java_grpc_srcs.jar'\'' '\''bazel-out/local-opt/bin/src/main/protobuf/command_server_java_grpc_srcs.srcjar'\''').
/bin/bash: cp: command not found
Target //src:bazel failed to build
我认为这是因为 "exec env - " 使用了错误的$PATH环境。
当我只运行 "exec env - " 命令时。
$ exec env - /bin/bash -c 'echo $PATH'
/usr/local/bin:/usr/bin
但cp命令在/bin/cp下。
而且我确认"/bin "在系统的$PATH变量中。
我应该修改哪个配置?