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

  • 0
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值