Linux installation guide

To install on a linux based system, you need Python and PIP (usually already installed), GCC (usually already installed), and CVODE (usually available via a package manager).

Specific instructions for Fedora and Ubuntu are given below.

Installing Myokit

On Fedora:

$ dnf install python-pip python-devel
$ dnf install python-matplotlib python-sympy python-qt5
$ dnf install sundials-devel
$ pip install myokit
On Ubuntu:
$ apt-get install python-matplotlib python-sympy python-pyqt5
$ apt-get install python-dev libsundials-serial-dev
$ pip install myokit

Icons for Gnome/KDE

To add menu items on Gnome/KDE, run

$ myokit icons

Ubuntu OpenCL support for Intel GPUs

On recent versions of Ubuntu, you can add support for GPU simulation on Intel GPUs (not CPUs!) by adding the packages:

$ apt-get install ocl-icd-libopencl1 ocl-icd-opencl-dev
$ apt-get install opencl-headers beignet


The following components are required to run Myokit:

Python 2.7, or 3.4 or higher

These are usually pre-installed on Linux systems.

The PIP package manager for python.

Typically obtained via a package manager such as dnf or apt, see above.

Sundials 2.4 or higher (CVODE 2.6 or higher)

The Sundials CVODE solver is required to run simulations. Version 2.4 (or higher) of the Sundials Suite is required. It is possible to install only the CVODE solver, not the full library. The version of CVODE included in the 2.4 suite is CVODE 2.6.

On many systems, a recent version of Sundials is available through some package manager, e.g. apt, yum, dnf, macports. See below for platform-specific info.

If compiling Sundials from the source, make sure to include the "shared libraries" (.so or .dll files) by adding the --enable-shared switch to configure before compiling.

Note: Python and sundials should be compiled for the same architecture: A 64 bit python installation will require a 64 bit Sundials install.

OpenCL drivers and libraries (optional)
Myokit can use OpenCL to run parallelized simulations either on a CPU or a GPU. For this to work, you need to install:
  1. OpenCL-compatible drivers for the device you want to run on. These can typically be downloaded from the manufacturer's homepage.
  2. A copy of the OpenCL libraries. Some implementations of these libraries can work with devices from different vendors. To be safe, try downloading a version distributed by the manufacturer of the intended device (i.e. your CPU or GPU).