centos 如何处理“制造:prooc:未找到命令”

c3frrgcw  于 8个月前  发布在  其他
关注(0)|答案(2)|浏览(93)

我正在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

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

r6hnlfcb

r6hnlfcb1#

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

  • 让你的管理员安装protobufprotobuf-compiler软件包。
  • 自己编译它并将二进制文件安装到~/bin目录中。

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

slhcrj9b

slhcrj9b2#

在Ubuntu上,如果你有管理权限,你可以这样做,

sudo apt-get install protobuf-compiler-grpc

相关问题