Skip to content

Instantly share code, notes, and snippets.

@stephenturner
Created August 31, 2015 18:29
Show Gist options
  • Save stephenturner/6046337d1237ecd627a8 to your computer and use it in GitHub Desktop.
Save stephenturner/6046337d1237ecd627a8 to your computer and use it in GitHub Desktop.
building hdf5 without root
# Run these lines
cd /path/to/wherever/it/should/go
wget http://www.hdfgroup.org/ftp/HDF5/current/src/hdf5-1.8.15-patch1.tar.gz
tar -zxvf hdf5-1.8.15-patch1.tar.gz
cd hdf5-1.8.15-patch1
./configure --disable-parallel --without-szlib --without-pthread --prefix=$(pwd)
make && make install
# Add this to your .bashrc
export HDF5="/path/to/wherever/it/should/go/hdf5-1.8.15-patch1"
export PATH=$PATH:${HDF5}/bin
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:${HDF5}/lib
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment