Step 1 - install compiler and compile libSBML with Python bindings.
Sbml.org provided libSBML packages do not contain Python bindings. Therefore we have to compile it manually. First, install compiler.
apt-get install build-essential
apt-get install python2.7-dev
apt-get install libxml2-dev
apt-get install swig
Dowload the source code from http://sourceforge.net/projects/sbml/files/libsbml/5.9.0/.
cd into the unzipped directory of libsbml source code.
cd libSBML-5.9.0-Source/
./configure --with-python
make
make install
Make libSBML accessible to Python. The actual path may differ.
export PYTHONPATH=/usr/local/lib64/python2.7/site-packages/
Step 2 - install networkx library
NetworkX library is available as Python egg. Install setuptools to gain ability to install Python eggs.
apt-get install python-setuptools
Download NetworkX from https://pypi.python.org/pypi/networkx/ and then install using the following command:
easy_install networkx-1.8.1-py2.7.egg
Step 3 - install pylevenshtein and xlrd libraries
Download pylevenshtein from http://code.google.com/p/pylevenshtein/. Extract it!
Install pylevenshtein:
cd python-Levenshtein-0.10.1
python setup.py build
python setup.py install
Download xlrd from https://pypi.python.org/pypi/xlrd. Extract it!
Install xlrd:
cd xlrd-0.9.2
python setup.py build
python setup.py install
Step 4 - install pyparsing and matplotlib
apt-get install python-pyparsing
apt-get install python-matplotlib
Step 5 - run ModeRator
cd moderator-gtk-257/src/
./moderator_gtk.py