Installation instructions for Mac users
Mac users can follow the same instructions as linux users, except for the installation of the external dependencies (requirements):
C++ and Fortran compilers
Mercury uses C++11 features and thus requires an up-to-date compiler.
We suggest you use clang, or gcc 4.8-6 or higher.
To compile our Fortran files, we recommend gfortran.
cmake version 2.8.14 or higher (http://cmake.org/cmake)
python version 2.7
subversion (svn) version 1.7 or higher
doxygen and graphviz (dot) used to create a local copy of the documentation
X11 used to visualise your simulation results with xballs
Paraview used to visualise your simulation results, rendered in 3D
OpenMPI libraries for parallel computing
Step 1: Install external dependencies
To install an up-to-date c++ compiler we recommend you to install either XCode or the Command Line Tools. XCode provides you with a nice IDE, but is ~10GB in size, whereas the Command line tools is a much lighter package. To install the Command Line Tools, open a terminal and type
For more details, see https://osxdaily.com/2014/02/12/install-command-line-tools-mac-os-x/.
To install the other dependencies, we recommend you to use a package manager such as brew. Once you have installed brew, you can install the other packages as follows:
Similarly, you also can install the optional dependencies, like doxygen.
Step 2: Install MercuryDPM
Follow the installation instructions for linux to install MercuryDPM, starting with step 2.