Building from Source code

Building MOOSE from source on Unix/Linux systems is fairly straightforward once all of it's dependencies have been satisfied. The following commands should build and install MOOSE on most Unix/Linux systems.

  • Clone repository

One can download the latest source code archive from here or use git command:

(This will create folder called "moose")
$ cd moose

$ git submodule update --init; git pull
$ sudo -E ./update-repository
( This script updates the repository and its subrepositories recursively, located in moose folder )

  • Required Dependencies

    • Core MOOSE
      • Required:
        • g++ (>= 4.6.x) For building the C++ MOOSE core.
        • GSL (>= 1.16.x) For core MOOSE numerical computation
      • Optional
        • HDF5 (>=1.8.x) For reading and writing data into HDF5 based formats
    • Python interface for core MOOSE API (pymoose)
      • Python2 ( >= 2.7.x) For building the MOOSE Python bindings
      • Python-dev ( >= 2.7.x) Python development headers and libraries
      • NumPy ( >= 1.6.x) For array interface
    • Optional
      • NetworkX (1.x) For automatical layout
      • pygraphviz For automatic layout for chemical models
      • Matplotlib (>=1.1.x) For plotting simulation results
      • python-libsbml For reading and writing chemical models from and into SBML format
  • Graphical User Interface
    In addition to core MOOSE requirements,these are optional packages which you may want to install to use MOOSE Graphical User Interface
    • Required:
      • PyQt4 (4.8.x) For Python GUI
      • Matplotlib ( >= 1.1.x) For plotting simulation results
      • NetworkX (1.x) For automatical layout
      • suds/suds-jurko (0.4) For accessing models hosted on biomodels database.
    • Optional:
      • python-libsbml For reading and writing signalling models from and into SBML format
  • Moogli
    • OSG (3.2.x) For 3D rendering and simulation of neuronal models
    • Qt4 (4.8.x) For C++ GUI of Moogli


  • Build on Linux system

    • Method 1: Using Makefile
      $ cd moose-core
      $ make
      $ export PYTHONPATH="/homedir/moose-core/python"
      $ ./build-moose-core
      ( builds moose and sets the pythonpath in local_site_package_directory)
    • Method 2: Using cmake
      $ cd moose-core
      $ cmake
      $ make
      $ sudo make install