Skip to content

Instantly share code, notes, and snippets.

@rdbisme
Last active September 6, 2019 10:57
Show Gist options
  • Save rdbisme/468979a4ef509394c70c8286bf9d8e4e to your computer and use it in GitHub Desktop.
Save rdbisme/468979a4ef509394c70c8286bf9d8e4e to your computer and use it in GitHub Desktop.
Install python wrapper for SUNDIALS on Ubuntu
# This script compiles SUNDIALS and install the python wrapper bmcage.odes
# You can also run it directly from the Internet doing
# curl -s https://gist.githubusercontent.com/rubendibattista/468979a4ef509394c70c8286bf9d8e4e/raw/install_bmcage_odes.sh | sudo bash
apt-get update
apt-get upgrade
apt-get install --assume-yes wget python python-dev cmake liblapack-* python-virtualenv virtualenvwrapper
wget https://computation.llnl.gov/projects/sundials/download/sundials-2.7.0.tar.gz
tar -xvf sundials-2.7.0.tar.gz
mkdir sundials-2.7.0/build
cd sundials-2.7.0/build
cmake -DLAPACK_ENABLE=ON -DCMAKE_INSTALL_PREFIX=/usr ..
make
make install
# After the execution install the wrapper in a virtualenv
# Create virtualenv in personal account
# mkvirtualenv pysundials
# Install prereqs
# pip install numpy cython
# pip install scikits.odes
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment