cd /usr/local/src tar xzvf mpich2-xyz.tar.gz
mkdir /usr/local/src/mpich2 ./configure --prefix=/usr/local/mpich2 --enable-mpe --enable-cxx \ --enable-romio --with-java-home=/usr/local/java/jre 2>&1 | tee configure.log make 2>&1 | tee make.log make install 2>&1 | tee install.log