在使用luarocks isntall loadcaffe
时,先是报错
Could NOT find PROTOBUF (missing: PROTOBUF_LIBRARY PROTOBUF_INCLUDE_DIR)
查找解决方案是因为缺少protoc
相关的包,因此使用如下命令安装:
sudo apt-get install libprotobuf-dev protobuf-compiler
重新安装loadcaff
, 又报错:
tmp/luarocks_loadcaffe-1.0-0-2611/loadcaffe/build/caffe.pb.h:12:2: error: #error This file was generated by a newer version of protoc which is
#error This file was generated by a newer version of protoc which is
^
/tmp/luarocks_loadcaffe-1.0-0-2611/loadcaffe/build/caffe.pb.h:13:2: error: #error incompatible with your Protocol Buffer headers. Please update
#error incompatible with your Protocol Buffer headers. Please update
^
/tmp/luarocks_loadcaffe-1.0-0-2611/loadcaffe/build/caffe.pb.h:14:2: error: #error your headers.
#error your headers.
^
In file included from /tmp/luarocks_loadcaffe-1.0-0-2611/loadcaffe/load