OpenMPI installation

  • Download Open MPI source code openmpi-1.4.5.tar.gz and configure.sh
    Uncompress openmpi-1.4.5.tar.gz in your home directory on the desktop and compile it
    tar -zxvf openmpi-1.4.5.tar.gz
    cp configure.sh openmpi-1.4.5
    cd openmpi-1.4.5
    chmod 755 configure.sh
    apt-get install g++ libc6-dev
    ./configure.sh
    make 
    make install
    


  • Add the following lines in the beginning of the user's .bashrc of the user who will run MPI, for example /home/hostadm/.bashrc:
    export PATH=/usr/local/openmpi/bin:$PATH
    export LD_LIBRARY_PATH=/usr/local/openmpi/lib:$LD_LIBRARY_PATH