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

問題一:

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
时间: 2024-08-06 15:58:07

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

GNU Linux 64位系统中fatal error: stdio.h: 没有那个文件或目录的错误的解决方法

在64位系统中,编写一个C语言程序后,使用gcc进行编译时,出现了如下的错误: test.c:1:19: fatal  error: stdio.h: 没有那个文件或目录 #include <stdio.h> 针对以上的情况,对于在32环境下一般不会出现这个问题,因为已经把libc的头文件包括在系统中了,那么针对这样的情况,主要检查是否安装了完备的开发环境: build-essential package - Installs the following collection to compi

Ubuntu下 fatal error: Python.h: No such file or directory 解决方法

参考: fatal error: Python.h: No such file or directory Ubuntu下 fatal error: Python.h: No such file or directory 解决方法 根据使用的Python版本安装python-dev库. sudo apt-get install python-dev # for python2.x installs sudo apt-get install python3-dev # for python3.x i

pyaudio安装缺少文件问题error: portaudio.h: 没有那个文件或目录

1.在安装pyaudio时,报错failed error: portaudio.h: 没有那个文件或目录 2.pyaudio的运行需要依赖于portaudio这个库,应该先安装一个portaudio库 3.portaudio安装步骤: a)下载portaudio库http://portaudio.com/download.html b)将下载的文件进行解压 c)进入解压后的portaudio文件,依次执行命令: ./configure make make install 4.到此portaudi

错误:readline/readline.h:没有那个文件或目录解决方法

make linux在包含自 lua.h:16 的文件中,从 lua.c:15:luaconf.h:275:31: 错误:readline/readline.h:没有那个文件或目录luaconf.h:276:30: 错误:readline/history.h:没有那个文件或目录lua.c: In function 'pushline':lua.c:182: 警告:隐式声明函数 'readline'lua.c:182: 警告:赋值时将整数赋给指针,未作类型转换lua.c: In function

fatal error: Python.h: No such file or directory 解决

[常见错误] fatal error: Python.h: No such file or directory 环境场景 系统: Parrot Linux软件: 系统python默认版本2.7 PyCharm默认版本Python3.5场景: Build pycrypto-2.6.1 失败提示: building 'Crypto.PublicKey._fastmath' extension x86_64-linux-gnu-gcc -pthread -fwrapv -Wall -Wstrict-p

fatal error: Eigen3/Core: 没有那个文件或目录

解决方法: 在CMakeLists.txt文件里添加: include_directories("/usr/include/eigen3") 原文地址:https://www.cnblogs.com/darklights/p/10516181.html

Moses与IRSTLM共同编译失败的解决方案:fatal error: dictionary.h no such file or 目录

已经解决: 错误原因在于始终没用又用已经编译安装过的irstlm而是一直用那个原文件夹造成的,而这里Manual似乎也写错了,manual里有很强的误导性: 但是仔细看,manual里还写到: However, if you want to use IRSTLM to read the language model and assign scores to n-grams, then IRSTLM needs to be linked with Moses. Once IRSTLM is suc

fatal error C1083: 无法打开包括文件“jni.h”

在cocos2d-x vs2010编写HelloWorld中,想使用JniHelp对C++和java进行调试,出现错误: ..\cocos2dx\plateform\android\jni\jnihelp.h(27):fatal error c1083:无法打开包括文件“jni.h” 我使用的java路径在:C:\Program Files (x86)\Java\jdk1.6.0 vs2010工作目录在:C:\Program Files (x86)\Microsoft Visual Studio

afx.h(78): fatal error C1083: 无法打开包括文件: “new.h”: No such file or directory

vs2015新建mfc工程,编译错误: D:\program files (x86)\microsoft visual studio 14.0\vc\atlmfc\include\afx.h(78): fatal error C1083: 无法打开包括文件: "new.h": No such file or directory 解决办法:修改 项目->配置属性->VC++目录 中的包含目录和库目录