使用luarocks安装hdf5时出现hdf5.h错误

时间:2019-11-22 08:32:36

标签: c hdf5 luarocks

我正在使用luarocks命令为lua安装hdf5,

luarocks --local install hdf5

然后我得到一个错误;

make[1]: Entering directory '/tmp/luarocks_hdf5-2.0.0-1-g0RmEe/lua-hdf5/hdf5'
In file included from <command-line>:0:0:
/usr/include/stdc-predef.h:63:1: fatal error: H5pubconf.h: No such file or directory
 #endif
 ^
compilation terminated.
gcc -E -o C.i -I/tmp/luarocks_hdf5-2.0.0-1-g0RmEe/lua-hdf5/hdf5/../gcc-lua-cdecl/ffi-cdecl C.c
C.c:11:18: fatal error: hdf5.h: No such file or directory
 #include <hdf5.h>
                  ^
compilation terminated.
Makefile:33: recipe for target 'C.i' failed
make[1]: *** [C.i] Error 1
make[1]: Leaving directory '/tmp/luarocks_hdf5-2.0.0-1-g0RmEe/lua-hdf5/hdf5'
Makefile:44: recipe for target 'hdf5' failed
make: *** [hdf5] Error 2

Error: Build error: Failed building.

我在lua 5.3系统上使用luarocks 3.2.0gcc-4.8 compiler的{​​{1}}。

有人可以帮忙吗?

0 个答案:

没有答案