

If using a Bourne-based shell, like the Mac OS X default /bin/bash, do something like Set the PETSC_DIR to the directory it which the PETSc source was unpacked. PETSc configuration requires that the PETSC_DIR environment variable be set before configuration. Installation directory ( $HOME/gridpack). Directories or architecture variables that should be set to reflect local user environments are colored red.ĭownload the PETSc source. Here the authorĭecided to use a single installation directory, $HOME/gridpack. You need toĬhoose a path in which packages will be installed. PETSc and Global Arrays need to be built from source.
Install mpi on mac install#
Install CMake and the GNU linear programming kit: Wrappers, like mpicc, will be available at the command line.

Sudo port select -set mpi mpich-clang60-fortranĪt this point, the compiler commands, clang and clang++, and MPI compiler Make the installed compilers and MPI wrappers the default. Install the CLang 6.0 compiler set, mpich MPI implementation, andīoost with Boost.MPI using the following: Starting a new shell should make the port command available on the The top of /etc/paths (superuser privileges required). The easiest way to do this is to add /opt/local/bin to Most systems support rsync, but if yours doesn't because of firewall issues, additional information and some workarounds can be found here.Īfter MacPorts installation, /opt/local/bin needs to be in shell It isĪssumed here that MacPorts was installed in /opt/local, which is theĭefault. Similar capability, but the author has no experience with it. Installed and maintained on a Mac OS X system. MacPorts isįree, open source system whereby various software packages can be To install (some of) the needed prerequisite software. The easiest way to get GridPACK going on Mac OS X is to use MacPorts
