Developer Install Guide

The easiest ways to install Chaste are:

If you encounter any problems, or have an unusual setup, the following material may be useful. Note that some familiarity with installing software on Linux-like systems may be required.

Basic installation

The manual instructions below detail an installation using preferred versions of our dependencies, for a non-root user.

These instructions have been tried successfully on:

  • Fedora 39 (Nov 2023)

Some pre-requisites

The following tools are required or useful. Most systems will already have these installed, or provide an easy way to set them up:

  • gcc and g++
  • gfortran — if you want to build PETSc with HYPRE support (--download-hypre option below).
  • wget
  • python3, python3-venv and python3-pip
  • git — for users of development branches.
  • valgrind — for memory testing (optional).

Since version 3.1, Chaste requires a 64-bit system. Almost all modern systems will be 64-bit. In the terminal, type

uname -m

If this returns i686, you have a 32-bit system, and you will not be able to use modern versions of Chaste.

Many systems will also include some of the below Chaste dependencies already. You can usually have a look for them with locate, e.g.

locate petsc

If you find pre-existing versions, then check Dependency Versions to see if they are compatible with Chaste. If so, you may be able to skip their installation below, but make sure that you have the ‘includes’ and ’libraries’ where required (if you don’t know what this means then just follow all the below instructions!).

Note

The newest versions of libraries may not have been tested yet, so don’t simply install latest version! Ideally follow these instructions, but if this isn’t possible (or you have pre-installed versions) then check Dependency Versions first.

Setup

CMake

CMake is the recommended build system for Chaste, and is needed to build several of the dependencies listed below.

Boost

PETSc

HDF5

ParMETIS

SUNDIALS

XSD

Xerces

VTK

chaste_codegen

Post-installation

Configuring Chaste

Once you’ve installed the dependencies as above, you need to get hold of the Chaste code. See Getting Started for the options to pick here. Once you’ve done this, you are ready to build and run the test suite – see the CMake First Run Guide.