A while back ago I purchased a used copy of “A First Course in Computational Physics and Object-Oriented Programming with C++” by David Yevick and I’m finally getting around to reading it. To follow along one needs to install DISLIN and GSL.
Note that not all of this is free (as in speech, although it is free as in beer), however, I wanted to set it up so that I could read the book.
First off, I was setting this up on my Debian box which uses “etch” and found that (due to licensing, I believe) libmotif3 was not to be found so I ended up enabling the “sarge” repository to get it.
Once everything was installed there’s a few other things to note:
- Setting your PATHS. You need to do something like
export DISLIN=dislin_directory
in my case that was
export DISLIN=/usr/local/dislin
then
PATH=${PATH}:${DISLIN}/bin
LD_LIBRARY_PATH=$DISLIN:$LD_LIBRARY_PATH
export LD_LIBRARY_PATH - Write up your source code in your favorite editor and save it. In my case, let’s say it was myFile.cpp
- Run the following to compile and link it:
clink -cpp myFile
Note that the extension is left off.
Some interesting examples are in the examples directory and can be compiled with:
clink -a exa_c
Lastly, typing: dismanĀ will launch a manual.




0 Responses to “DISLIN, GSL set up”
Leave a Reply