HDf 5バージョンの問題

1354 ワード

/home/sun/torch/install/share/lua/5.1/trepl/init.lua:389: module 'hdf5' not found:Failed loading module hdf5 in LuaRocks rock hdf5 0-0
	no field package.preload['hdf5']
	no file '/home/sun/.luarocks/share/lua/5.1/hdf5.lua'
	no file '/home/sun/.luarocks/share/lua/5.1/hdf5/init.lua'
	no file '/home/sun/torch/install/share/lua/5.1/hdf5.lua'
	no file '/home/sun/torch/install/share/lua/5.1/hdf5/init.lua'
	no file './hdf5.lua'

/home/sun/torch/install/share/lua/5.1/trepl/init.lua:389: /home/sun/torch/install/share/lua/5.1/hdf5/ffi.lua:88: Unsupported HDF5 version: 1.10.2
stack traceback:
	[C]: in function 'error'
	/home/sun/torch/install/share/lua/5.1/trepl/init.lua:389: in function 'require'
	train.lua:8: in main chunk



解決策、Ubuntu>13.04の場合
sudo apt-get install libhdf5-serial-dev hdf5-tools
git clone https://github.com/deepmind/torch-hdf5
cd torch-hdf5
luarocks make hdf5-0-0.rockspec LIBHDF5_LIBDIR="/usr/lib/x86_64-linux-gnu/"

Ubuntu<13.04の場合
sudo apt-get install libhdf5-serial-dev hdf5-tools
git clone https://github.com/deepmind/torch-hdf5
cd torch-hdf5
luarocks make hdf5-0-0.rockspec

参照Error:unable to locate HDF 5 header file at hdf 5.h