配F-RCN遇到的问题(hdf5.h: 没有那个文件或目录)及解决
2018-01-24 14:58
405 查看
问题:
src/caffe/net.cpp:8:18: fatal error: hdf5.h: 没有那个文件或目录
compilation terminated.
Makefile:575: recipe for target '.build_release/src/caffe/net.o' failed
make: *** [.build_release/src/caffe/net.o] Error 1
解决方案:
在Makefile.config文件的第85行,添加/usr/include/hdf5/serial/ 到 INCLUDE_DIRS,也就是把下面第一行代码改为第二行代码。
在Makefile文件的第173行,把 hdf5_hl 和hdf5修改为hdf5_serial_hl 和 hdf5_serial,也就是把下面第一行代码改为第二行代码。
如果还没解决,则:
find /usr-iname"*hdf5.h*"
/usr/include/hdf5/serial/hdf5.h
export CPATH="/usr/include/hdf5/serial/"
然后 make clean
make -j8
src/caffe/net.cpp:8:18: fatal error: hdf5.h: 没有那个文件或目录
compilation terminated.
Makefile:575: recipe for target '.build_release/src/caffe/net.o' failed
make: *** [.build_release/src/caffe/net.o] Error 1
解决方案:
Step 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
如果还没解决,则:
find /usr-iname"*hdf5.h*"
/usr/include/hdf5/serial/hdf5.h
export CPATH="/usr/include/hdf5/serial/"
然后 make clean
make -j8
相关文章推荐
- 遇到错误-----安装DBD:MySql模块遇到的问题及解决办法Can't exec "mysql_config": 没有那个文件或目录 at Makefile.PL line 479.
- 遇到错误-----安装DBD:MySql模块遇到的问题及解决办法Can't exec "mysql_config": 没有那个文件或目录 at Makefile.PL line 479.
- 解决执行Oracle控制脚本时遇到的 “cat: /etc/oratab: 没有那个文件或目录”的问题
- 解决执行Oracle控制脚本时遇到的 “cat: /etc/oratab: 没有那个文件或目录”的问题
- 用anjuta编译gtk程序时出现类似与"main.c::10:21:gtk/gtk.h:没有那个文件和目录"问题的解决
- “fatal error: hdf5.h: 没有那个文件或目录”解决方法
- linux下用gcc编译c程序时遇到的问题: error: stdio.h: 没有那个文件或目录
- [问题-已解决]arm-none-linux-gnueabi-gcc没有那个文件或目录
- 解决debian JDK无法安装问题提示./install.sfx.: 没有那个文件或目录
- debian 64位下解决“bash ./没有那个文件或目录”的问题
- Ubuntu 64位下解决“bash ./没有那个文件或目录”的问题
- 解决centos7 安装JDK 出现的问题 没有那个文件或目录
- 解决debian JDK无法安装问题提示./install.sfx.: 没有那个文件或目录
- Ubuntu16.04安装CPU版的caffe 时出现的“没有那个文件或目录”问题解决方法
- “minicom: cannot open /dev/ttyUSB0: 没有那个文件或目录”问题的解决
- 关于 can not find hdf5.h(hdf5:没有那个文件或目录)的解决方法
- bash: /opt/FriendlyARM/toolschain/4.5.1/bin/arm-linux-gcc: 没有那个文件或目录 问题解决方案
- 解决 linux下编译make文件报错“/bin/bash^M: 坏的解释器:没有那个文件或目录” 问题
- Ubuntu 64位下解决“bash ./没有那个文件或目录”的问题