如何在 Ubuntu 17.10 上安装 HDF5 版本 1.8?

如何在 Ubuntu 17.10 上安装 HDF5 版本 1.8?

我正在使用 torch,但是当我尝试运行以下命令时:

require 'hdf5'

这将返回以下错误:

/home/mobeen/torch/install/share/lua/5.1/hdf5/ffi.lua:71: Unsupported HDF5 version: 1.10.0
stack traceback:
    [C]: in function 'error'
    /home/mobeen/torch/install/share/lua/5.1/hdf5/ffi.lua:71: in function 'checkHDF5Version'
    /home/mobeen/torch/install/share/lua/5.1/hdf5/ffi.lua:78: in main chunk
    [C]: in function 'dofile'
    /home/mobeen/.luarocks/share/lua/5.1/torch/init.lua:54: in function 'include'
    /home/mobeen/torch/install/share/lua/5.1/hdf5/init.lua:29: in main chunk
    [C]: in function 'require'
    stdin:1: in main chunk
    [C]: at 0x00406500
th> ^Z
[3]+  Stopped                 luajit

相关内容