source: issm/oecreview/Archive/19101-20495/ISSM-19783-19784.diff@ 20498

Last change on this file since 20498 was 20498, checked in by Mathieu Morlighem, 9 years ago

CHG: done with Archive/19101-20495

File size: 1.4 KB
  • ../trunk-jpl/externalpackages/mpich/install-3.0-macosx64-elcapitan.sh

     
     1# One way to avoid firewall and host-name issues on El Capitan is
     2# to use gforker, instead of default hydra, process manager.
     3# Note that gforker will only work with a single-node configuration.
     4# https://www.mpich.org/static/downloads/3.0.4/mpich-3.0.4-installguide.pdf
     5
     6#!/bin/bash
     7set -eu
     8
     9#Some cleanup
     10rm -rf src install mpich-3.0.4
     11mkdir src install
     12
     13#Download from ISSM server
     14$ISSM_DIR/scripts/DownloadExternalPackage.py 'http://issm.jpl.nasa.gov/files/externalpackages/mpich-3.0.4.tar.gz' 'mpich-3.0.4.tar.gz'
     15
     16#Untar
     17tar -zxvf  mpich-3.0.4.tar.gz
     18
     19#Move mpich into src directory
     20mv mpich-3.0.4/* src
     21rm -rf mpich-3.0.4
     22
     23#Configure mpich
     24cd src
     25./configure \
     26        --prefix="$ISSM_DIR/externalpackages/mpich/install" \
     27        --enable-shared \
     28        --with-pm=gforker
     29
     30        #CC=llvm-gcc \
     31
     32#Compile mpich (this new version supports parallel make)
     33if [ $# -eq 0 ]; then
     34        make
     35else
     36        make -j $1
     37fi
     38make install
Note: See TracBrowser for help on using the repository browser.