码迷,mamicode.com
首页 > 其他好文 > 详细

“fatal error: hdf5.h: 没有那个文件或目录”解决方法

时间:2016-10-26 22:09:41      阅读:532      评论:0      收藏:0      [点我收藏+]

标签:ack   caffe   error:   out   log   serial   art   err   net   

問題一:

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/51043913

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

“fatal error: hdf5.h: 没有那个文件或目录”解决方法

标签:ack   caffe   error:   out   log   serial   art   err   net   

原文地址:http://www.cnblogs.com/ysdu/p/6002069.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!