您的位置:首页 > 编程语言 > Java开发

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
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签:  tessorflow serving
相关文章推荐