Saturday, June 7, 2008

Install Python API to libsbml

I installed Python API to libsbml, the famous SBML library.

First build libsbml with "--with-python" during configure, the libsbml library is installed on /usr/local/lib/ by default, and the Python API is installed on /usr/local/lib/python2.4/site-packages/libsbml;

Then add following line to .bashrc:
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/local/lib
export PYTHONPATH=/usr/local/lib/python2.4/site-packages/libsbml:/usr/local/lib/python2.4/site-packages

This way python can import libsbml!

No comments: