source: issm/trunk-jpl/externalpackages/mpich/install-3.0-macosx64-static.sh@ 18406

Last change on this file since 18406 was 18406, checked in by glperez, 11 years ago

CHG: Fixed issue with new MPICH static install script and modified OSX64 install script.

  • Property svn:executable set to *
File size: 570 bytes
Line 
1#!/bin/bash
2set -eu
3
4#Some cleanup
5rm -rf src install mpich-3.0.4
6mkdir src install
7
8#Download from ISSM server
9$ISSM_DIR/scripts/DownloadExternalPackage.py 'http://issm.jpl.nasa.gov/files/externalpackages/mpich-3.0.4.tar.gz' 'mpich-3.0.4.tar.gz'
10
11#Untar
12tar -zxvf mpich-3.0.4.tar.gz
13
14#Move mpich into src directory
15mv mpich-3.0.4/* src
16rm -rf mpich-3.0.4
17
18#Configure mpich
19cd src
20./configure \
21 --prefix="$ISSM_DIR/externalpackages/mpich/install"
22
23#Compile mpich (this new version supports parallel make)
24if [ $# -eq 0 ]; then
25 make
26else
27 make -j $1
28fi
29make install
Note: See TracBrowser for help on using the repository browser.