Skip to content

Instantly share code, notes, and snippets.

@caiofcm
Last active October 23, 2018 10:17
Show Gist options
  • Select an option

  • Save caiofcm/197a5663a92c1fb43bf1edcf5e5483be to your computer and use it in GitHub Desktop.

Select an option

Save caiofcm/197a5663a92c1fb43bf1edcf5e5483be to your computer and use it in GitHub Desktop.
install sundials ubuntu

Install sundials on ubuntu

Download Sundials

https://computation.llnl.gov/projects/sundials/sundials-software (tested with 2.7)

Download cmake

sudo apt-get install cmake

if failed:

sudo apt-get install software-properties-common
sudo add-apt-repository ppa:george-edison55/cmake-3.x
sudo apt-get update

Install Sundials as From scikit.odes

Ref: https://scikits-odes.readthedocs.io/en/latest/installation.html

mkdir build-sundials-2.7.0
cd build-sundials-2.7.0/
cmake -DLAPACK_ENABLE=ON -DCMAKE_INSTALL_PREFIX=<install_path> ../sundials-2.7.0/
make install

OBS: DCMAKE_INSTALL_PREFIX better to ommit OBS: it may be necessary to add the installation folder to LD_LIBRARY_PATH:

Check:

echo LD_LIBRARY_PATH

Add to .bashrc or .zshrc:

export LD_LIBRARY_PATH=/usr/local/lib

OBS: /usr/local/lib is the default if DCMAKE_INSTALL_PREFIX was omitted.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment