./include/caffe/data_layers.hpp:9:18: fatal error: hdf5.h: No such file or directory
2016-11-29 12:21
736 查看
再次编译,报错:
src/caffe/layers/hdf5_data_layer.cpp:13:18: fatal error: hdf5.h: No such file or directory
#include "hdf5.h"
记得上面已经安装了hdf5-devel,怎么会出这个错?查看一下,发现yum这个没找到hdf5-devel,所以也就没有安装。
在docs/installion.md中,建议:but we suggest first installing the [Anaconda](https://store.continuum.io/cshop/anaconda/) Python distribution, which provides most of the necessary
packages, as well as the `hdf5` library dependency.
准备安装hdf5: http://www.hdfgroup.org/ftp/HDF5/current/src/hdf5-1.8.16.tar 解压后:
./configure --prefix=/usr/local/hdf5-1.8.3 ##指定安装路径,否则会默认安装到当前路径下。
make ##4分钟左右
make install
此时,在Makefile.config中增加HDF5_DIRS的路径到搜索路径下:
HDF5_DIRS :=/usr/local/hdf5-1.8.3/
# Whatever else you find you need goes here.
INCLUDE_DIRS := $(PYTHON_INCLUDE) /usr/local/include $(HDF5_DIRS)/include
LIBRARY_DIRS := $(PYTHON_LIB) /usr/local/lib /usr/lib $(HDF5_DIRS)/lib
看来CAFFE编译是一步一个坑啊。
这个错误表明,我们的hdf5.h这个头文件的路径没有被找到,如果你没有安装HDF5这个文件 ,那当然是找不到的。
再者,就然你安装了这个文件也可能找不到,那么我们怎么办。
我们用locate hdf5.h找到你安装的路径,然后在makefile.conf文件中相应指定就好了。
那么,最终总结的经验就是遇山修路,过水搭桥。
好,接下来继续编译,可能双碰到问题了。哎呀,又一个坑。
***********************CAFFE又一坑**************************
AR -o .build_release/lib/libcaffe.a
LD -o .build_release/lib/libcaffe.so
/usr/bin/ld: cannot find -lcblas
/usr/bin/ld: cannot find -latlas
collect2: error: ld returned 1 exit status
Makefile:493: recipe for target '.build_release/lib/libcaffe.so' failed
make: *** [.build_release/lib/libcaffe.so] Error 1
make: *** Waiting for unfinished jobs....
src/caffe/layers/hdf5_data_layer.cpp:13:18: fatal error: hdf5.h: No such file or directory
#include "hdf5.h"
记得上面已经安装了hdf5-devel,怎么会出这个错?查看一下,发现yum这个没找到hdf5-devel,所以也就没有安装。
在docs/installion.md中,建议:but we suggest first installing the [Anaconda](https://store.continuum.io/cshop/anaconda/) Python distribution, which provides most of the necessary
packages, as well as the `hdf5` library dependency.
准备安装hdf5: http://www.hdfgroup.org/ftp/HDF5/current/src/hdf5-1.8.16.tar 解压后:
./configure --prefix=/usr/local/hdf5-1.8.3 ##指定安装路径,否则会默认安装到当前路径下。
make ##4分钟左右
make install
此时,在Makefile.config中增加HDF5_DIRS的路径到搜索路径下:
HDF5_DIRS :=/usr/local/hdf5-1.8.3/
# Whatever else you find you need goes here.
INCLUDE_DIRS := $(PYTHON_INCLUDE) /usr/local/include $(HDF5_DIRS)/include
LIBRARY_DIRS := $(PYTHON_LIB) /usr/local/lib /usr/lib $(HDF5_DIRS)/lib
看来CAFFE编译是一步一个坑啊。
这个错误表明,我们的hdf5.h这个头文件的路径没有被找到,如果你没有安装HDF5这个文件 ,那当然是找不到的。
再者,就然你安装了这个文件也可能找不到,那么我们怎么办。
我们用locate hdf5.h找到你安装的路径,然后在makefile.conf文件中相应指定就好了。
那么,最终总结的经验就是遇山修路,过水搭桥。
好,接下来继续编译,可能双碰到问题了。哎呀,又一个坑。
***********************CAFFE又一坑**************************
AR -o .build_release/lib/libcaffe.a
LD -o .build_release/lib/libcaffe.so
/usr/bin/ld: cannot find -lcblas
/usr/bin/ld: cannot find -latlas
collect2: error: ld returned 1 exit status
Makefile:493: recipe for target '.build_release/lib/libcaffe.so' failed
make: *** [.build_release/lib/libcaffe.so] Error 1
make: *** Waiting for unfinished jobs....
相关文章推荐
- caffe编译之fatal error: hdf5.h: No such file or directory
- src/caffe/layers/hdf5_data_layer.cpp:13:18: fatal error: hdf5.h: No such file or directory
- fatal error: caffe/proto/caffe.pb.h: No such file or directory #include "caffe/proto/caffe.pb.h
- caffe编译:fatal error: pyconfig.h: No such file or directory #include "pyconfig.h"
- ./include/caffe/util/cudnn.hpp:8:34: fatal error: caffe/proto/caffe.pb.h: No such file or director
- fatal error: hdf5.h: No such file or directory
- fatal error: caffe/proto/caffe.pb.h: No such file or directory
- Ubuntu caffe安装python/caffe/_caffe.cpp:1:52: fatal error: Python.h: No such file or directory
- /usr/include/gnu/stubs.h:7:27: fatal error: gnu/stubs-32.h: No such file or directory
- src/caffe/util/matio_io.cpp:10:19: fatal error: matio.h: No such file or directory compilation termi
- error: /usr/include/features.h:324:26: fatal error: bits/predefs.h: No such file or directory
- caffe时编译出错: fatal error: caffe/proto/caffe.pb.h: No such file or directory
- caffe : /wrap_python.hpp:50:23: fatal error: pyconfig.h: No such file or dir
- 一种编译错误的解决办法。/usr/include/linux/errno.h:4:23: fatal error: asm/errno.h: No such file or directory
- make Error::/usr/include/features.h:324:26: fatal error: bits/predefs.h: No such file or directory
- fatal error: caffe/proto/caffe.pb.h: No such file or directory
- /usr/include/gnu/stubs.h:10:27: fatal error: gnu/stubs-64.h: No such file or directory
- 编译boost python模块遇到的错误:../../libraries/boost_1_44_0/boost/python/detail/wrap_python.hpp:75:24: fatal error: patchlevel.h: No such file or directory
- python/caffe/_caffe.cpp:10:31: fatal error: numpy/arrayobject.h: No such file or directory
- 配置caffe的python环境时make pycaffe提示fatal error: numpy/arrayobject.h No such file or directory解决方法