tensorflow serving 安装报错:java.io.IOException: Cannot run program "patch"
2017-07-27 13:56
661 查看
安装tensorflow serving到步骤:bazel build tensorflow_serving/...
报错:error loading package 'tensorflow_serving/config': Encountered error while reading extension file 'protobuf.bzl': no such package '@protobuf//': Traceback (most recent call last):........
Stderr: java.io.IOException: Cannot run program "patch" (in directory "/root/.cache/bazel/_bazel_root/39bcea045bc991b09fcd286e27ac35ca/external/protobuf"): error=2, No such file or directory.
解决办法:yum install patch
安装完patch后报错:
ERROR: /root/.cache/bazel/_bazel_root/39bcea045bc991b09fcd286e27ac35ca/external/curl/BUILD:28:1: C++ compilation of rule '@curl//:curl' failed: gcc failed: error executing command /usr/bin/gcc -U_FORTIFY_SOURCE -fstack-protector -Wall -B/usr/bin -B/usr/bin
-Wunused-but-set-parameter -Wno-free-nonheap-object -fno-omit-frame-pointer -MD -MF ... (remaining 50 argument(s) skipped): com.google.devtools.build.lib.shell.BadExitStatusException: Process exited with status 1.
external/curl/lib/if2ip.c:47:23: fatal error: stropts.h: No such file or directory
# include <stropts.h>
^
解决办法:http://blog.csdn.net/jongden/article/details/24995415
报错:error loading package 'tensorflow_serving/config': Encountered error while reading extension file 'protobuf.bzl': no such package '@protobuf//': Traceback (most recent call last):........
Stderr: java.io.IOException: Cannot run program "patch" (in directory "/root/.cache/bazel/_bazel_root/39bcea045bc991b09fcd286e27ac35ca/external/protobuf"): error=2, No such file or directory.
解决办法:yum install patch
安装完patch后报错:
ERROR: /root/.cache/bazel/_bazel_root/39bcea045bc991b09fcd286e27ac35ca/external/curl/BUILD:28:1: C++ compilation of rule '@curl//:curl' failed: gcc failed: error executing command /usr/bin/gcc -U_FORTIFY_SOURCE -fstack-protector -Wall -B/usr/bin -B/usr/bin
-Wunused-but-set-parameter -Wno-free-nonheap-object -fno-omit-frame-pointer -MD -MF ... (remaining 50 argument(s) skipped): com.google.devtools.build.lib.shell.BadExitStatusException: Process exited with status 1.
external/curl/lib/if2ip.c:47:23: fatal error: stropts.h: No such file or directory
# include <stropts.h>
^
解决办法:http://blog.csdn.net/jongden/article/details/24995415
相关文章推荐
- Execute failed: java.io.IOException: Cannot run program "sdk-linux/build-tools/22.0.0/aapt": error=2
- Execute failed: java.io.IOException: Cannot run program "sdk-linux/build-tools/22.0.0/aapt": error=2
- java调用Linux命令报错:java.io.IOException: Cannot run program "ps": CreateProcess error=2, ?????????
- hadoop java.io.IOException: Cannot run program "nice"
- Exception in thread "main" java.io.IOException: Cannot run program "XX": CreateProcess error
- 出错1Exception in thread "main" java.io.IOException: Cannot run program "C:\winmine.e xe": CreateProce
- java.io.IOException - Cannot run program "git": java.io.IOException: error=2, No such file or direct
- java.io.IOException: Cannot run program "chmod": CreateProcess error=2
- java.io.IOException: Cannot run program "mvn":
- java.io.IOException: Cannot run program "ls": CreateProcess error=2,错误解决方法
- 转换webp格式图片,java.io.IOException: Cannot run program "dwebp": error=2, No such file or directory
- java.io.IOException: Cannot run program "C:\Program": CreateProcess error=2,
- 解决java.io.IOException: Cannot run program "cygpath": CreateProcess error=2, 系统找不到指定的文件 的错误
- java.io.IOException: Cannot run program "/etc/hadoop/conf.cloudera.yarn/topology.py" (in directory "
- java.io.IOException: Cannot run program "bash": error=12, Cannot allocate memory
- Exception in thread "main" java.io.IOException: Cannot run program "XX": CreateProcess error
- Exception in thread "main" java.io.IOException: Cannot run program "chmod": CreateProcess error=2
- 关于java.io.IOException: Cannot run program "unzip":
- linux下java.io.IOException: Cannot run program "/opt/jdk/jre/bin/java": error=13, Permission denied
- java.io.IOException: Cannot run program "/opt/java/sdk/build-tools/23.0.1/aapt": error=2, No such fi