Centos 如何解决;make:protoc:Command未找到“;

Centos 如何解决;make:protoc:Command未找到“;,centos,makefile,protocol-buffers,caffe,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 ca

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

如何解决此错误?

由于您缺乏管理权限,您可以

  • 请您的管理员安装和软件包
  • 自己编译并在
    ~/bin
    目录中安装二进制文件
对于后者,此页面()提示它可能与使用configure脚本上的
--prefix=$HOME
选项一样简单