Skip to content
Snippets Groups Projects
index.rst 3.13 KiB

Installing MOOSE

Use pre-built packages

Use our repositories hosted at [Open Build Service](http://build.opensuse.org). We have packages for Debian, Ubuntu, CentOS, Fedora, OpenSUSE/SUSE, RHEL, Scientific Linux. Visit the following page and follow the instructions there.

https://software.opensuse.org/download.html?project=home:moose&package=moose

Building from source

First, Download the latest source code of moose from github.

$ git clone https://github.com/BhallaLab/moose $ cd moose

Install dependencies

For moose-core:

For python module of MOOSE, following additional packages are required:

  • Development package of python e.g. libpython-dev
  • python-numpy

For python-gui, we need some more addtional packages

  • matplotlib
  • setuptools (cmake uses it to install moose python extension and moogli)
  • suds
  • Python bindings for Qt4 or higher
  • Python OpenGL
  • Python bindings for Qt's OpenGL module

On Ubuntu-120.4 or higher, these can be installed with:

sudo apt-get install python-matplotlib python-qt4 python-qt4-gl

## Use cmake to build moose:

$ mkdir _build $ cd _build $ cmake -DWITH_DOC=OFF .. $ make $ ctest --output-on-failure

This will build moose and its python extentions, ctest will run few tests to check if build process was successful.

To install MOOSE into non-standard directory, pass additional argument -DCMAKE_INSTALL_PREFIX=path/to/install/dir to cmake.

After that installation is pretty easy.

Install

$ sudo make install

Building and installing moogli

MOOGLI is subproject of moogli for visualizing models. Details can be found [here](http://moose.ncbs.res.in/moogli).

MOOGLI dependencies are huge! It uses OpenSceneGraph which has its own dependencies. In nutshell, depending on your distribution, you would need following packages to be installed.

instructions [here](http://www.libqglviewer.com//installUnix.html#linux)

libQGLViewer-2.3.15-py) and untar contents.

$ cd / PyQGLViewer0.10 $ python setup.py build # to compile $ python setup.py install # to install on your system $ python setup.py bdist # to create a binary distribution

On Ubuntu, following packages should suffice:

$ sudo apt-get install python-qt4-dev python-qt4-gl libopenscenegraph-dev python-sip-dev libqt4-dev