hdf5版本问题

/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 HDF5 header file at hdf5.h

你可能感兴趣的:(各种问题)