LINUX Version 0.11


Requirements

Minimum

  • C++ and fortran compilers

    • Note, Mercury uses C++11 features. Version 4.7 of gcc claims to have C++11 feature, but the implementation is incomplete.
      Thus, gcc 4.8 is minimum version for gcc family of compliers.

  • cmake version 2.8 or higher (http://cmake.org/cmake/resources/software.html)

  • python version 2.x

  • subversion (svn) version 1.7 or higher

  • doxygen (optional: used for creating the documentation while building your source code)

  • X11 (optional: for using xballs)

  • OpenMPI (optional: for parallel computing, which will be in the next beta version)


Installation steps

For Linux users

  • Make sure the above mentioned packages are installed. On Ubuntu 16.04, you need to install the following dependencies

sudo apt install build-essential g++ gfortran subversion python2.7 cmake-curses-gui cmake-qt-gui doxygen graphviz \

libx11-dev libxt-dev libxres-dev libxtst-dev openmpi-bin mpi-default-dev

  • Open the terminal or shell. Create a directory called "MercuryDPM", at a location of your choice, by typing

mkdir MercuryDPM


  • To get into mercuryDPM, type

cd MercuryDPM/


  • Once in the folder MercuryDPM, download or check out the version 0.11.1 of the DPM source by typing

svn checkout https://svn.MercuryDPM.org/SourceCode/Release/0.11.1 MercurySource

The above command downloads the DPM source code into the folder named "MercurySource"


  • In the current folder, i.e. mercuryDPM, create another directory called "MercuryBuild"

mkdir MercuryBuild

  • Get into the folder "MercuryBuild" by typing

cd MercuryBuild

With cmake GUI


  • Assuming cmake is successfully installed, goto directory "MercuryBuild" in order to create the executables from the source code. Do it by typing

cmake-gui ../MercurySource/


  • A GUI pops up on your screen as in the picture shown below