source: issm/trunk/externalpackages/hdf5/install-1-parallel.sh@ 27645

Last change on this file since 27645 was 27645, checked in by dlcheng, 2 years ago

CHG: Updating hdf5 install script version.

  • Property svn:executable set to *
File size: 748 bytes
Line 
1#!/bin/bash
2set -eu
3
4
5# Constants
6#
7VER="1.14.0"
8
9PREFIX="${ISSM_DIR}/externalpackages/hdf5/install" # Set to location where external package should be installed
10
11## Environnment
12#
13export CC=mpicc
14
15# Download source
16$ISSM_DIR/scripts/DownloadExternalPackage.sh "https://issm.ess.uci.edu/files/externalpackages/hdf5-${VER}.tar.gz" "hdf5-${VER}.tar.gz"
17
18# Untar source
19tar -zxvf hdf5-${VER}.tar.gz
20
21# Cleanup
22rm -rf install src
23mkdir install src
24
25# Move source to 'src' directory
26mv hdf5-${VER}/* src/
27rm -rf hdf5-${VER}
28
29# Configure
30cd src
31./configure \
32 --prefix="${PREFIX}" \
33 --enable-parallel \
34 --with-zlib="${ZLIB_ROOT}" \
35 --enable-hl
36
37# Compile and install
38#
39if [ $# -eq 0 ]; then
40 make
41 make install
42else
43 make -j $1
44 make -j $1 install
45fi
Note: See TracBrowser for help on using the repository browser.