Skip to content

How to compile MONICA (Linux)

Michael Berg-Mohnicke edited this page Feb 4, 2025 · 11 revisions

Linux / Debian 9 ('stretch')

Prequisites

  • python 3.6+

  • cmake

  • git

  • curl

  • unzip

  • tar

    sudo apt-get update
    sudo apt-get install build-essential
    sudo apt-get install python-dev
    sudo apt-get install curl unzip tar
    sudo apt-get install git
    sudo apt-get install cmake
  • create a working folder (e.g ~/zalf-rpm)

    mkdir zalf-rpm
    cd zalf-rpm
  • checkout monica and dependencies

    git clone --recurse-submodules https://github.com/zalf-rpm/monica.git
    git clone https://github.com/zalf-rpm/monica-parameters.git
    git clone https://github.com/Microsoft/vcpkg.git
  • build vcpkg

    cd vcpkg
    ./bootstrap-vcpkg.sh
  • build zmq, Cap’n Proto, sodium, toml++ libs

    ./vcpkg install zeromq:x64-linux
    ./vcpkg install capnproto:x64-linux
    ./vcpkg install libsodium:x64-linux
    ./vcpkg install tomlplusplus:x64-linux
  • create monica cmake folder and build monica

    cd ~/zalf-rpm/monica
    sh create_cmake_release.sh
    cd _cmake_release
    make