February 18, 2012

Mpich2 installation LINUX

1) First make folder "mpich2-install". It will be the installation directory.

  cd /home/arfeen
  mkdir mpich2-install

2) Download mpich2-1.4.1p1.tar.gz from Here.

3) Unpack the tar file.

  gunzip mpich2-1.4.1p1.tar.gz
  tar xf mpich2-1.4.1p1.tar

4) Go to the top level directory:

  cd mpich2-1.4.1p1

5) chmod 777 -R mpich2-1.4.1p1

6) ./configure --prefix=/home/arfeen/mpich2

But if u have no c++ compiler, write the following command.

./configure --disable-cxx --prefix=/home/arfeen/mpich2

But if u have no fortran compiler, write the following command.

./configure --disable-f77 --disable-fc --disable-cxx --prefix=/home/arfeen/mpich2-install

7) Build mpich2:

  make

8) Install the mpich2 commands:

  make install

9) Set PATH by using the following command:

  PATH=/home/arfeen/mpich2-install/bin:$PATH; export PATH

10) Check that every thing is in order.

  which mpicc
  which mpirun

Comment here if u are facing problems in mpich2 installation.


2 comments:

Web Statistics