Pave your path through these easy steps for installing mpich2 :
Step 1. Download mpich2-1.1.tar.gz from here
Step 2. Make directory as :
mkdir /specify/the/directory/name
Step 3. Untar the content as :
tar -zxvf mpich2-1.1.tar.gz -C /give/folder/name/created/in/step2
(Note : Option “-C” untar the tar.gz file in the folder specified after that)
Step 4. Change the directory to :
cd /full/path/of/the/folder/in/step2
Step 5. Due some customization as per your system :
./configure –prefix=/path/of/the/newfolder/create/in/step2
–enable-nmpi-as-mpi –enable-mpe –enable-threads=multiple
–with-mpe CC=gcc F77=f77
(Note : Before doing this make sure the gcc , f77 and g++ compilers are installed on your system otherwise you would be getting a configuration error)
Step 6.Configuration would be taking some time after successful
configuration build the mpich2 library using :
make
(Note : If “make” is successful then move to step 7 else use “make clean” and try figure out the source of error)
Step 7. After doing “make” if you have not specified prefix in the configuration step(step 5) then with root privileges do :
make install
else
if prefix is specified then do make install without root priveledges
This will install the parallel mpich2 library on your system.