To run the simulator, you will need the simulator itself, the sundials library and the boost library.
-
Download the library from: sundials website. You only need the KINSOL package though.
-
untar the package, and go into the directory:
tar -xzvf kinsol-2.7.0.tar.gz cd kinsol-2.7.0
I would recommand you to read section B.1, B.2 and B.4 of the INSTALL_NOTES, but if you don't want to, then you can just do:
# Assume I want to install them to ~/usr/sundials directory ./configure --prefix=$HOME/usr/sundials --enable-examples make make install
What we really need from boost library is just the program_options.
- To find the this library in your Ubuntu release:
sudo apt-cache search libboost-program-options\*
- To install them, my Ubuntu comes with 1.55 version, so I just do
sudo apt-get install libboost1.55-dev libboost-program-options1.55-dev libboost-program-options1.55.0
Note that you will need the libboost1.55-dev for the header file "boost/program_options.hpp" 3. Finally, you can verify your installation by using the command:
dpkg-query --listfiles libboost1.55-dev
dpkg-query --listfiles libboost-program-options1.55.0
To check if the files have been installed correctly or just try to compile them.
Set the following variable to correct path in Makefile:
SUNDIALS_INC_DIR = "$(HOME)/usr/sundials/include"
SUNDIALS_LIB_DIR = "$(HOME)/usr/sundials/lib"
BOOST_INC_DIR = "$(HOME)/usr/include"
BOOST_LIB_DIR = "$(HOME)/usr/lib/boost"
Then just do make in your command line:
$ make