back to HOME

INSTRUCTIONS TO INSTALL MPI ON MAC-OS MACHINES USING MACPORTS AND OPENMPI




1. Install macports, it may be downloaded from
http://www.macports.org/
2. Install new compilers, the last version of gcc in macports has the fron ends to c++ and fortran, do the next command
sudo port install gcc45
...
...
...
this surely will take a long time. Better take one coffee.
3. Get openmpi form http://www.open-mpi.org/
4. Build mpi. As we want to use the new compilers set the next option may be used to configure the instalation. In this case ompi will be installed in the path /opt/ompi
./configure FC=/opt/local/bin/gfortran-mp-4.5 F77=/opt/local/bin/gfortran-mp-4.5 CC=/opt/local/bin/gcc-mp-4.5 CXX=/opt/local/bin/g++-mp-4.5 --prefix=/opt/ompi
Then we build:
sudo make all install
5. It is necessary to set the path of this installation for use automatically on bash, add thenext line to .bash_profile
export PATH=/opt/ompi/bin:$PATH