我正在尝试按照http://caffe.berkeleyvision.org/installation.html#prerequisites上的说明建立caffe 编译时我得到以下错误: (我使用Fedora 22)
$make all
CXX src/caffe/data_transformer.cpp
In file included from ./include/caffe/blob.hpp:8:0,
from ./include/caffe/data_transformer.hpp:6,
from src/caffe/data_transformer.cpp:6:
./include/caffe/common.hpp:5:27: fatal error: gflags/gflags.h: No such file or directory
compilation terminated.
Makefile:516: recipe for target '.build_release/src/caffe/data_transformer.o' failed
make: *** [.build_release/src/caffe/data_transformer.o] Error 1
我做错了什么?
答案 0 :(得分:2)
您必须安装缺少的依赖项(gflags)。
Fedora / RHEL / CentOS:sudo yum install gflags-devel
Ubuntu:sudo apt-get install libgflags-dev
还有其他依赖项的说明:
Fedora / RHEL / CentOS:http://caffe.berkeleyvision.org/install_yum.html
答案 1 :(得分:0)
安装缺少的gflag依赖项
+