“fatal error: hdf5.h: 没有那个文件或目录”解决方法
2016-10-26 21:57
741 查看
問題一:
Installing Caffe without CUDA: fatal error: cublas_v2.h No such file :
在Makefile.config中修改,將CPU_ONLY := 1打開。問題二:“fatal error: hdf5.h: 没有那个文件或目录”解决方法
参考自http://blog.csdn.net/hongye000000/article/details/51043913Step 1
在Makefile.config文件的第85行,添加/usr/include/hdf5/serial/ 到 INCLUDE_DIRS,也就是把下面第一行代码改为第二行代码。INCLUDE_DIRS := $(PYTHON_INCLUDE) /usr/local/include
INCLUDE_DIRS := $(PYTHON_INCLUDE) /usr/local/include /usr/include/hdf5/serial/
Step 2
在Makefile文件的第173行,把 hdf5_hl 和hdf5修改为hdf5_serial_hl 和 hdf5_serial,也就是把下面第一行代码改为第二行代码。LIBRARIES += glog gflags protobuf boost_system boost_filesystem m hdf5_hl hdf5
LIBRARIES += glog gflags protobuf boost_system boost_filesystem m hdf5_serial_hl hdf5_serial
相关文章推荐
- fatal error: Python.h: 没有那个文件或目录 解决方法
- fatal error: Python.h: 没有那个文件或目录 解决方法
- ROS / OpenCV Ubuntu安装“usr/include/c++/6/cstdlib:75:25: fatal error: stdlib.h: 没有那个文件或目录”解决
- 解决ubuntu下编译安装Lua时提示lua.c:80:31: fatal error: readline/readline.h: 没有那个文件或目录
- suse linux 11 error: gnu/stubs-32.h: 没有那个文件或目录 解决方法
- 关于 can not find hdf5.h(hdf5:没有那个文件或目录)的解决方法
- 解决ubuntu下编译安装Lua时提示lua.c:80:31: fatal error: readline/readline.h: 没有那个文件或目录
- Ubuntu Linux 解决 bash ./ 没有那个文件或目录 的方法
- Ubuntu下解决bash 没有那个文件或目录的方法
- Ubuntu Linux 解决 bash ./ 没有那个文件或目录 的方法
- Ubuntu 解决 shell ./ 没有那个文件或目录 而ls有 的方法
- Ubuntu Linux 解决 bash ./ 没有那个文件或目录 的方法
- /usr/include/features.h:374:25: fatal error: sys/cdefs.h: 没有那个文件或目录 # include <sys/cdefs.h>
- 解决 Python.h:没有那个文件或目录 错误的方法
- Ubuntu Linux 解决 bash ./ 没有那个文件或目录 的方法
- Ubuntu Linux 解决 bash ./ 没有那个文件或目录 的方法
- 解决 Python.h:没有那个文件或目录 错误的方法
- Ubuntu Linux 解决 bash ./ 没有那个文件或目录 的方法
- bash文件无法运行,提示没有那个文件或目录的解决方法
- elf_i386:没有那个文件或目录 解决方法