mpich 3.3 - snugook1108/install GitHub Wiki

mkdir mpich-3.3-install
curl -L -O http://www.mpich.org/static/downloads/3.3/mpich-3.3.tar.gz
tar -xf mpich-3.3.tar.gz -C .
cd mpich-3.3
mkdir gcc-build
cd gcc-build
../configure --prefix=$HOME/mpich-3.3-install \
--enable-shared \
--enable-sharedlibs=gcc \
--enable-fast=O2 \
--enable-debuginfo \
--enable-totalview \
--enable-two-level-namespace \
CC=gcc \
CXX=g++ \
FC=gfortran \
F77=gfortran \
F90='' \
CFLAGS='' \
CXXFLAGS='' \
FFLAGS='' \
FCFLAGS='' \
F90FLAGS='' \
F77FLAGS=''
make 
make install
export PATH=$HOME/mpich-3.3-install/bin:$PATH
export C_INCLUDE_PATH=$HOME/mpich-3.3-install/include:$C_INCLUDE_PATH
export CPLUS_INCLUDE_PATH=$HOME/mpich-3.3-install/include:$CPLUS_INCLUDE_PATH
export FPATH=$HOME/mpich-3.3-install/include:$FPATH
export MANPATH=$HOME/mpich-3.3-install/share/man:$MANPATH
export LD_LIBRARY_PATH=$HOME/mpich-3.3-install/lib:$LD_LIBRARY_PATH