thdf5.sh - pism - [fork] customized build of PISM, the parallel ice sheet model (tillflux branch)
(HTM) git clone git://src.adamsgaard.dk/pism
(DIR) Log
(DIR) Files
(DIR) Refs
(DIR) LICENSE
---
thdf5.sh (670B)
---
1 #!/bin/bash
2
3 set -e
4 set -u
5 set -x
6
7 # Install HDF5 1.10.5 with parallel I/O in ~/local/hdf5,
8 # using ~/local/build/hdf5 as the build directory.
9
10 version=1.10.5
11 prefix=$HOME/local/hdf5
12 build_dir=~/local/build/hdf5
13 hdf5_site=https://support.hdfgroup.org/ftp/HDF5/releases/hdf5-1.10
14 url=${hdf5_site}/hdf5-${version}/src/hdf5-${version}.tar.gz
15
16 mkdir -p ${build_dir}
17 pushd ${build_dir}
18
19 wget -nc ${url}
20 tar xzf hdf5-${version}.tar.gz
21
22 pushd hdf5-${version}
23
24 CC=mpicc CFLAGS=-w ./configure \
25 --disable-static \
26 --enable-parallel \
27 --prefix=${prefix} 2>&1 | tee hdf5_configure.log
28
29 make all 2>&1 | tee hdf5_compile.log
30 make install 2>&1 | tee hdf5_install.log
31
32 popd
33 popd