Last active
September 6, 2019 10:57
-
-
Save rdbisme/468979a4ef509394c70c8286bf9d8e4e to your computer and use it in GitHub Desktop.
Install python wrapper for SUNDIALS on Ubuntu
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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