目录

ubuntu上安装hdf5

ubuntu系统上安装hdf5

install hdf5 on ubuntu 12.04

1.you can probably install the debian libraries into quantal with no issues, precise is less likely to work, but it might possibly you will have to build it from source to get everything right.
Code:

1
2
3
4
5
$apt-get install devscripts equivs ubuntu-dev-tools 
$pull-debian-source hdf5 experimental    
$cd hdf5-*
$sudo mk-build-deps -ir
$debuild -us -uc

2.上述方法现在已经不适用,Google后发现,可以直接使用hdf5二进制包,由于本机为64bit linux,下载64位下的二进制包:

1
$wget http://www.hdfgroup.org/ftp/HDF5/releases/hdf5-1.8.9/bin/linux-x86_64/hdf5-1.8.9-linux-x86_64-shared.tar.gz
  1. 解压后,并在.bashrc中设置:
1
2
3
$export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/local/lib:$HOME/hdf5-1.8.9-linux-x86_64-shared/lib
$export HDF5_DIR=$HOME/hdf5-1.8.9-linux-x86_64-shared
$source .bashrc

4.安装 blosc (可选)
5.安装 lzo2-2 lzo2-dev

1
sudo apt-get install lzo2-2 lzo2-dev

至此HDF5可用