我试图在没有root用户访问权限的服务器上安装caffe,但出现以下错误
制作:*** [.build_release / src / caffe / proto / caffe.pb.o]错误1
此错误使我指向https://github.com/BVLC/caffe/issues/4512
protobuf2.3.0安装在服务器上,而protobuf3安装在主目录上,并将位置添加到LD_LIBRARY_PATH,但是如果我执行protoc --version
,它仍指向2.3.0。并且which protoc
说/usr/bin/protoc
我不允许删除2.3版本。
我如何指向其他安装?
编辑:
错误消息的开头是.build_release/src/caffe/proto/caffe.pb.h error: #error This file was generated by an older version of protoc which is incompatible with your Protocol Buffer headers. Please regenerate this file with a newer version of protoc.
最佳答案
似乎您需要将安装新协议的目录添加到PATH变量中。诸如export PATH=/path/to/your/protobuf/installation/bin:$PATH
之类的方法应该执行此操作,具体取决于您使用的shell。