Linux下安装hdf5

Linux下安装torch-hdf5

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/"

 

安装ZQM(ZeroMQ)

https://blog.csdn.net/tt_ren/article/details/53079806

 

最后要升级一下python-zmp:

sudo apt-get install python-zmq

 

安装matio

安装流程
1,下载matio,https://sourceforge.net/projects/matio/files/matio/  哪个版本都可以,自己选择 
2,安装

$ tar zxf matio-1.5.13.tar.gz
$ cd matio-1.5.13
$ ./configure
$ make
$ make check
$ make install

3,出错

s408@s408:~/matio-1.5.13$ make install
Makefile:697: recipe for target 'install-libLTLIBRARIES' failed make[1]: *** [install-libLTLIBRARIES] Error 1
' Makefile:1428: recipe for target 'install-am' failed make: *** [install-am] Error 2

4,解决
新建一个文件夹将你解压后的matio包放进去,

`s408@s408:~$ cd matio-1.5.13/
s408@s408:~/matio-1.5.13$ mkdir _install
s408@s408:~/matio-1.5.13$ ./configure --host=arm-hisiv500-linux --prefix=/home/lab/matio-1.5.13/_install/(你安装的位置)
Features --------------------------------------------
  MAT v7.3 file support: no
Extended sparse support: yes

Packages --------------------------------------------
                 zlib: -lz
                 hdf5:
               MATLAB:

在执行make install 即可,到此安装完了,
我在用Torch跑数据时出现错误,因此还需要一步

/home/s408/torch/i/torch/install/share/lua/5.1/trepl/init.lua:389: module 'matio' not found:No LuaRocks module found for matio

到你新建存放的目录下,输入命令

s408@s408:~/soft$ luarocks install matio
Installing https://raw.githubusercontent.com/torch/rocks/master/matio-scm-1.rockspec...
Using https://raw.githubusercontent.com/torch/rocks/master/matio-scm-1.rockspec... switching to 'build' mode
正克隆到 'matio-ffi.torch'...
remote: Enumerating objects: 16, done.
remote: Counting objects: 100% (16/16), done.
remote: Compressing objects: 100% (15/15), done.
remote: Total 16 (delta 0), reused 10 (delta 0), pack-reused 0
接收对象中: 100% (16/16), 11.79 KiB | 0 bytes/s, 完成.
检查连接... 完成。
Updating manifest for  
 

 

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值