centos - 如何寻址 "make: protoc: Command not found"

标签 centos makefile protocol-buffers caffe

我正在 CentOS 系统上安装 Caffe,我没有管理权限。当我尝试编译时,遇到以下消息:

PROTOC src/caffe/proto/caffe.proto
make: protoc: Command not found
make: *** [.build_release/src/caffe/proto/caffe.pb.cc] Error 127

到目前为止我所做的是:

cd
git clone https://github.com/BVLC/caffe.git
cd caffe
cp Makefile.config.example Makefile.config
# Uncomment CPU_ONLY := 1.
# Include the following lines:
# INCLUDE_DIRS := $(PYTHON_INCLUDE) /usr/local/include /usr/include/hdf5/serial/
# LIBRARY_DIRS := $(PYTHON_LIB) /usr/local/lib /usr/lib /usr/lib/x86_64-linux-gnu/hdf5/serial
pico Makefile.config
virtualenv caffe
source caffe/bin/activate
pip install protobuf
pip install scikit-image
make all

我应该如何解决这个错误?

最佳答案

由于您没有管理权限,您可以

  • 请您的管理员安装 protobufprotobuf-compiler包。
  • 自行编译并将二进制文件安装到您的 ~/bin 目录中。

对于后者,此页面 ( Install google protocol buffers (protoc, protobuf) on CentOS 6 (linux) ) 暗示它可能与在配置脚本中使用 --prefix=$HOME 选项一样简单。

关于centos - 如何寻址 "make: protoc: Command not found",我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/32148440/

相关文章:

java - 安装Protocol Buffers时出现编译错误

由于空格,MySQL 在 bash 中发送错误

linux - yum更新后Xen CentOS 6 VM无法启动-内核错误

node.js - Docker、Cent OS、PhantomJS 字体格式问题

makefile - 为什么 "make"没有回显任何内容?

hadoop - 使用Hive反序列化protobuf列

linux - 使用 FIFO 调度的进程仍处于关闭状态?

linux - 内核 makefile 中 ?= 的含义是什么?

Makefile 使用相同的命令行输入调用自身(除了前置字符串)

java - 在哪里可以找到在 Java 中使用 Google Protocol Buffer 的 protobuf.jar?