I found out the suitesparse version using
$ sudo ldconfig -v | grep libsuitesparse
sbin/ldconfig.real: /lib/x86_64-linux-gnu/
ld-2.31.so is the dynamic linker, ignoring
libsuitesparseconfig.so.5 -> libsuitesparseconfig.so.5.7.1
/sbin/ldconfig.real: /lib32/
ld-2.31.so is the dynamic linker, ignoring
However the Sundials version was 3.1. So I updated it to sundials 5.1 which I compiled from source code available from
here
Now I get the following error while building from source.
configure: WARNING: SUNDIALS IDA library not configured with SUNLINSOL_KLU or sunlinksol_klu.h is not usable. The solvers ode15i and ode15s will not support the sparse Jacobian feature.
The command I gave was :
./../configure --prefix=$HOME/my_octave
Even with the CPP flag like below, I get the same error:
./../configure --prefix=$HOME/my_octave CPPFLAGS="-I/usr/include/suitesparse"
In the compile output,
checking for sunlinsol/sunlinsol_klu.h... no
checking for SUNKLU in -lsundials_sunlinsolklu... no
configure: WARNING: SUNDIALS IDA library not configured with SUNLINSOL_KLU or sunlinksol_klu.h is not usable. The solvers ode15i and ode15s will not support the sparse Jacobian feature.
But in the /usr/include/sunlinsol...I could not find a sunlinsol_klu.h library. Do I need to edit the
configure.ac file in someway to make this work?